Log 1946
03/08/2023 2023-08-03 12:21$dateToday = date(‘d/m/Y’);
$futureDate = #תאריך עתידי#;
$todayArr = explode(‘/’, $dateToday);
$futureArr = explode(‘/’, $futureDate);
$todayTimestamp = mktime(0, 0, 0, $todayArr[1], $todayArr[0], $todayArr[2]);
$futureTimestamp = mktime(0, 0, 0, $futureArr[1], $futureArr[0], $futureArr[2]);
$differenceDays = ($futureTimestamp – $todayTimestamp) / (60 * 60 * 24);
return ‘The difference in days between today and the future date is: ‘ . abs($differenceDays);