If I return an object containing a DateTime property from a web method, which would be methods prefix with the data annotation
[WebMethod]
that date will be serialized to something like
"/Date(1365776562553)/"
instead of a string in iso-8601 format like
"2013-04-12T19:59:53.2422758+05:30"
If I could change the serializer for web methods from JsonDataContractSerializer to NewtonSoft Json Serializer, the dates would be fixed.
How?
I will not serialize manually or writing javascripts that consumes date strings in the first format.
The googling I have done this far only directs me to pages where any of those workarounds are suggested.