.net中时间的转换格式

I

在NuGet中下载Newtonsoft.Json插件

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

 

--时间转换格式

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

posted @ 2018-08-28 15:49  ITMrRight  阅读(816)  评论(0编辑  收藏  举报