Newtonsoft.Json.Converters.IsoDateTimeConverter DateTimeConverter = new Newtonsoft.Json.Converters.IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd hh:mm:ss" };
ApiUrl += "?action=" + Action;
string PostJson = "postData=" + JsonConvert.SerializeObject(CustomerServiceWorkOrder, DateTimeConverter);
转载于:https://www.cnblogs.com/Andy-Blog/p/5811522.html