Log 2159
02/11/2023 2023-11-02 15:51$creationDate = #תאריך יצירה#;
$lastWeekStartDate = date(‘d/m/Y’, strtotime(‘-1 week Monday’));
$lastWeekEndDate = date(‘d/m/Y’, strtotime(‘-1 week Sunday’));
if (strtotime($creationDate) >= strtotime($lastWeekStartDate) && strtotime($creationDate) <= strtotime($lastWeekEndDate)) {
return 'true';
} else {
return 'false';
}