+ 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.
3 ответов
0
396 to 399
0
Source code I mean :')
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));