1#
You can go from DateTime to that format with
  1. DateTime dt =newDateTime();
  2. dt.Tostring("o");
复制代码
and from that format to DateTime with
  1. DateTimeOffset.Parse(dateString);
复制代码
Here is some more info on DateTime format: http://www.dotnetperls.com/datetime-format