Log 1988
22/08/2023 2023-08-22 10:59$currentDate = date(‘d/m/Y’); // Get current date in the format of day/month/year
$taskDate = #תאריך ביצוע המשימה#; // Replace with the actual task execution date
// Convert dates to timestamp
$currentTimestamp = strtotime($currentDate);
$taskTimestamp = strtotime($taskDate);
// Calculate the difference in seconds between the two dates
$differenceInSeconds = $taskTimestamp – $currentTimestamp;
// Calculate the number of days by dividing the difference by 86400 (seconds in a day)
$daysRemaining = ceil($differenceInSeconds / 86400);
return $daysRemaining;