When I return object that contains DateTime property using
return Json(value); on client I receive
"/Date(1336618438854)/" If i return the same value using
return Json(JsonConvert.SerializeObject(value)); then the returned serialized value (together with serialized object) is time zone aware:
"/Date(1336618438854-0400)/" Is there any way to get consistent DateTime result without without double serialization? I read somewhere that MS will include Newtonsoft JSON into MVC?
$.parseJSON(result)will properly parse the dates. stackoverflow.com/a/4540007/752974