+ 1

Range date in php?

How to get range date in php? I want get value by day, like how many days in one years 2 month and 2 days.

10th May 2020, 8:46 AM
Riju
Riju - avatar
3 ответов
0
396 to 399
10th May 2020, 1:54 PM
Umar Fahm
Umar Fahm - avatar
0
Source code I mean :')
10th May 2020, 2:26 PM
Riju
Riju - avatar
0
You should get number of days between two dates. $now = time(); // or your date as well $your_date = strtotime("2020-01-31"); $datediff = $now - $your_date; echo round($datediff / (60 * 60 * 24));
11th May 2020, 5:38 PM
Lokesh Gupta
Lokesh Gupta - avatar