.net中时间的转换格式

I

在NuGet中下载Newtonsoft.Json插件

using Newtonsoft.Json.Converters; ---引入命名空间,

--时间转换格式

soDateTimeConverter fmt = new IsoDateTimeConverter();
fmt.DateTimeFormat = "yyyy-MM-dd";

原文地址:https://www.cnblogs.com/yjm8023/p/9548726.html