All,
We are using ASP.NET Web API where we have a REST based service with JSON for the payload. If I pass the following Date as a string e.g
sampleObj: {
...
myDate: "31/12/2011 00:00:00",
...
}
as an attribute value in the JSON payload, the date attribute gets deserialised into a DateTime.MinValue. Is the string format valid?
We know the format "2012-10-17 07:45:00" serialises successfully but we cannot guarantee that all dates received will be in this format. What are the valid options?