$calendarField = “10/12/2022”; $dateField = “”;
if ($calendarField !== “”) { $dateField = date(‘d/m/Y H:i’, strtotime($calendarField)); }
return $dateField;