$date1 = “01/01/2024”; $date2 = “08/04/2024”;
$diff = (strtotime($date2) – strtotime($date1)) / (60 * 60 * 24);
return $diff;