参照网友的解决方案

IsoDateTimeConverter timeFormat = new IsoDateTimeConverter();
            timeFormat.DateTimeFormat = "yyyy-MM-dd HH:mm:ss";
            Console.WriteLine(JsonConvert.SerializeObject(dt, Formatting.Indented, timeFormat));

 

就这么简单

相关文章:

  • 2021-12-10
  • 2021-10-26
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2018-06-19
  • 2021-04-21
  • 2022-12-23
相关资源
相似解决方案