I have this return and I want to convert to save the date in the YEAR - MES - DAY
$dataOs = date('Y-m-d', strtotime($request->data));
When I print like dd($dataOs);
sometimes it goes out the right way 2018-11-02 and sometimes it goes like this 1970-01-01 , but in all tests that I performed by testing for dd($request->data)
the date comes correct does it seem like it is something in the conversion I do not know how to explain?