Log 2177
07/11/2023 2023-11-07 14:03$taskDate = #תאריך המשימה#;
$currentDate = date(‘d/m/Y’);
if ($taskDate == $currentDate) {
return 0;
} elseif (strtotime($taskDate) < strtotime($currentDate)) {
$daysPassed = floor((strtotime($currentDate) – strtotime($taskDate)) / (60 * 60 * 24));
return $daysPassed;
} else {
return -1;
}