如何解析UTC日期 [英] How to parse utc date
本文介绍了如何解析UTC日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何解析日期
8月22日星期六14.00:00 UTC +200 2009
Sat Aug22 14.00:00 UTC +200 2009
我尝试使用
DateTime.ParseExact( Sat Aug 22 14.00:00 UTC +200 2009, ddd MMM d HH:mm:ss UTC yyyy,空);
DateTime.ParseExact("Sat Aug 22 14.00:00 UTC +200 2009", "ddd MMM d HH:mm:ss UTC yyyy", null);
推荐答案
尝试一下,就可以了。 14岁之后,您有。 -将其更改为:
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);
这篇关于如何解析UTC日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文