I have a variable recover from ajax and in the controller
dd($gethour);
"Sat Oct 26 2019 00:00:04 GMT+0200 (heure d’été d’Europe centrale)"
$from = \DateTime::createFromFormat('m-d-y H:i:s', $gethour);
dd($form);
Result:false
My problem is how to convert string to timestamp seen in the base HoursPass is a type timestamp