I am trying to get date_format validation going on in my laravel application. Its an api and get datetime in the format
2015-10-09T12:36:576+01:00
It is supposed to be IOS 8601 format so I was checking it against the format
"Y-m-d\TH:i:sO"
by using
'createdAt' => "required|date_format:Y-m-d\TH:i:sO",
But the validation fails. I am pretty sure that I am wrong in the format for the date(which I got from the official php documentation meaning the format for the data is not ISO 8601). Could someone please tell me what format that date is in?
Thanks