开发者

How to parse utc date

How do I Parse Date like

Sat Aug22 14.00:00 UTC +200 2009

I tried using

DateTime.ParseExact开发者_开发问答("Sat Aug 22 14.00:00 UTC +200 2009", "ddd MMM d HH:mm:ss UTC yyyy", null);


Try this, it works. After 14, you have "." - change it to ":"

DateTime.ParseExact("Sat Aug 22 14:00:00 UTC+0200 2009", 
                    "ddd MMM d HH:mm:ss UTCzzzz yyyy", null);

Reference

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜