Fantastic way to find day difference between 2 times in PHP

http://www.lost-in-code.com/programming/php-code/php-date-difference-in-days/

 

$days = floor((strtotime(“$otherdate”) – strtotime(“$today”))/86400);

Leave a Reply