开发者

DateTime.ParseExact, Ignore the timezone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜