That's not a valid JSON representation of a date.
, you need to bear in mind that the month you pass in is the month index
: January =
, February =
, etc. So
represents 21st June
, not 21st May.
Serializing Dates in JSON
var jsonSettings = new JsonSerializerSettings
string jsonKalin = JsonConvert.SerializeObject(dmKalin, jsonSettings);
The number passed to the
constructor represents the number of milliseconds since the UNIX epoch.