My page sends a ajax request with payload:
start_date: "2014-07-03T21:37:01.396Z"
The date has been created with:
var start_date = new Date();
I've tried in the same way:
var start_date = new Date().toISOstring;
The JMSSerializer needs this dateformat: Y-m-d\TH:i:sO. But is complaining:
"Invalid datetime \"2014-07-03T21:37:01.396Z\", expected format Y-m-d\\TH:i:sO."
My Entity-field has a annotation:
@ORM\Column(name="start_date", type="datetime", nullable=true)
Type datetime comes from MySql DateTime.