How to find number of days between two dates using PHP?
转载于:https://stackoverflow.com/questions/2040560/finding-the-number-of-days-between-two-dates
How to find number of days between two dates using PHP?
转载于:https://stackoverflow.com/questions/2040560/finding-the-number-of-days-between-two-dates
$now = time(); // or your date as well
$your_date = strtotime("2010-01-01");
$datediff = $now - $your_date;
echo round($datediff / (60 * 60 * 24));