How Can I Resolve "Incorrect datetime value: 'Wed Aug 24 2022 00:00:00 GMT+0200"
I'm using laravel8 API with reactjs Frontend I don't know How to set dateTime Format in laravel part to Central European Summer Time.
Any Suggestion Please
this is my migration code : $table->dateTime('visit_issue_date');
I found this solution :
$visitor->visit_issue_date=date('Y-m-d', strtotime($request->input('visit_issue_date')));
But In the frontend it works correctly only for current date but for other input dates it displayed 1970-01-01 as output
@tykus@ralston69 do you have any idea how to make .toISOString in laravel ?
@tykus I use a react-flatpickr. The current date worked correctly jecause I declare it as a new Date(). ToISOString() but the others not because Idon't know how to make it iso