0
I am trying to solve a date formatting issue before sending to database but am not succeeding!
I am using in a form the plugin datapicker, as shown in the image below:
In my Controller I have this line of code:
$agenda_exame->data = date('Y-m-d', strtotime($request->data_exame));
And you’re saving the date at the bank that way: 1969-12-31
Where is the problem?
Thanks for the help, solved the problem!
– Henqsan