标签:
var iso =
new
IsoDateTimeConverter();
iso.DateTimeFormat =
"yyyy-MM-dd"
;
object
obj =
new
object
();
JsonConvert.SerializeObject(obj, iso);
var iso = new Newtonsoft.Json.Converters.IsoDateTimeConverter();
iso.DateTimeFormat = "yyyy-MM-dd HH:mm:ss";
object obj = new object();
var a = Newtonsoft.Json.JsonConvert.SerializeObject(obj , iso);
标签:
原文地址:http://www.cnblogs.com/Gyutao/p/4835106.html