开发者

DateTime.ParseExact, Ignore the timezone

开发者 https://www.devze.com 2023-03-20 03:54 出处:网络
If I have a date such as 2011-05-05T11:35:47.743-04:00 How can I ignore the timezone (-04:00) when I do a DateT开发者_C百科ime.ParseExact programatically?DateTimeOffset dt =DateTimeOffset.Parse(\"201

If I have a date such as 2011-05-05T11:35:47.743-04:00

How can I ignore the timezone (-04:00) when I do a DateT开发者_C百科ime.ParseExact programatically?


DateTimeOffset dt =DateTimeOffset.Parse("2011-05-05T11:35:47.743-04:00", null);
0

精彩评论

暂无评论...
验证码 换一张
取 消