How to find number of days between two dates using PHP?
You can try the code below:
$dt1 = strtotime("2019-12-12"); //Enter your first date $dt2 = strtotime("12-12-2020"); //Enter your second date echo abs(($dt1 - $dt2) / (60 * 60 * 24));