Log 1707
14/07/2023 2023-07-14 11:47$birthDate = #תאריך לידה#;
$eventDate = #תאריך אירוע#;
if (strtotime($birthDate) > strtotime(“-18 years”, strtotime($eventDate))) {
return date(“d/m/Y”, strtotime(“+7 years”, strtotime($eventDate)));
} else {
return date(“d/m/Y”, strtotime(“+25 years”, strtotime($birthDate)));
}