<?php
$date1 = "2002-1-1";
$date2 = "2021-12-31";
$deff = abs(strtotime($date2) - strtotime($date1));
$daycount = $deff / (60 * 60 * 24);
echo $daycount;
?>
Why the answer is 7304 instead of 7300 as I am trying to calculate the number of days for 20 years?
Please help.