标签:format set net soft orm microsoft 客户 bsp math
[DataMember]
public DateTime? myTime { get; set; }
var timeFormat = new JsonSerializerSettings() { DateFormatHandling = DateFormatHandling.MicrosoftDateFormat }; string json = JsonConvert.SerializeObject(send, timeFormat); ResultData rd = JsonConvert.DeserializeObject<ResultData>(rststr, timeFormat);
客户端是用JSON.NET (Newtonsoft.Json.dll)
发送和接收都用
MicrosoftDateFormat
WCF JSON DATETIME JSON.NET (Newtonsoft.Json.dll)
标签:format set net soft orm microsoft 客户 bsp math
原文地址:http://www.cnblogs.com/runliuv/p/6066718.html