Log 2279
06/12/2023 2023-12-06 20:51function parseDate($date) {
$parts = explode(‘/’, $date);
if (count($parts) != 3) {
return ”; // Invalid date format
}
$day = intval($parts[0]);
$month = intval($parts[1]);
$year = intval($parts[2]);
if ($day 31 || $month 12 || $year <1900 || !checkdate($month, $day, $year)) {
return ''; // Invalid date
}
return date('Y-m-d', strtotime($date));
}
return parseDate(#תאריך האירוע#);