How to find number of days between two dates using PHP?
Easiest way to find the days difference between two dates
$date1 = strtotime("2019-05-25"); $date2 = strtotime("2010-06-23"); $date_difference = $date2 - $date1; $result = round( $date_difference / (60 * 60 * 24) ); echo $result;