Fix incorrect php days calculation with strtotime
Bezahlt bei Lieferung
Fix incorrect script in attachment.
Calculation in this script always results in 31 days, because in the script with strtotime +1 month always 31 days are added. We need the exact number of days between selected day today and day in 1 month minus 1.
This leads to wrong time periods.
Example: selected is 20/02/2023, we need to add 27 days, not 31.
Calculation to correct number of days is
((20/02/2023 + 1 month) minus 20/02/2023 - 1 day) +20/02/2023
Über das Projekt
28 Freelancer bieten im Durchschnitt $83 für diesen Job
Hello Sir, I can do this task as listed and deliver this in the next 48 hours at max. I am ready to start right away. Please check my profile for work and experience. Regards Jahangir Khan
Hello, I just read your project details that you need to fix incorrect day issue with strtotime func and i can complete it within few hours just leave me a message thanks