Goal: I want to save some data from an api to my database, the date looks like this in the api:
"utcDate": "2018-10-28T13:30:00Z"
I tried using datetime in my migrations but I'm getting errors that this is not the right format.
$table->datetime('date');
My error:
PDOException::("SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2018-10-20T11:30:00Z' for column 'date' at row 1")
Any other ways of storing this date as date in my database?