$output = ’02/01/2024 21:00 | 02/01/2024 23:30′;
$date = substr($output, 0, strpos($output, ‘|’) – 1);
return $date;