I'm using the JavaScriptSerializer.Deserialize<>() method to convert JSON I receive from the client into a custom C# class. One of the properties of that class is a DateTime. Currently the Deserialize<>() method throws an error, saying
"(my date string)" is not a valid value for DateTime.
I've tried sending the date using several different formats, including ticks and other formats produced by the various built-in JavaScript Date() methods, but none of them have worked.
Exactly what format is the Deserialize<>() method expecting in order to parse it into a .NET DateTime?