Log 4100
09/10/2024 2024-10-10 10:29$startDate = ‘תאריך התחלה’;
$durationInMonths = ‘אורך מסלול בחודשים’;
list($startDay, $startMonth, $startYear) = explode(‘/’, $startDate);
list($duration) = explode(‘ ‘, $durationInMonths);
$newDateTimestamp = strtotime(“+$duration months”, mktime(0, 0, 0, $startMonth, $startDay, $startYear));
$newDate = date(‘d/m/Y’, $newDateTimestamp);
return $newDate;