Log 2731
05/02/2024 2024-02-05 18:35$dates = #תאריך המשימה#;
$array = explode(“,”, $dates);
$latestDate = null;
foreach ($array as $dateString) {
$timestamp = strtotime($dateString);
if ($timestamp !== false && ($latestDate === null || $timestamp > $latestDate)) {
$latestDate = $timestamp;
}
}
$formattedDate = date(‘d/m/Y’, $latestDate);
return $formattedDate;