Log 2619
23/01/2024 2024-01-23 8:13$start_date = #תאריך התחלה#;
$end_date = strtotime($start_date . ” + #מספר ימים# days”);
if(date(“l”, $end_date) == “Friday” || date(“l”, $end_date) == “Saturday”) {
$sunday = strtotime(“next Sunday”, $end_date);
return date(“d/m/Y”, $sunday);
} else {
return “”;
}