【发布时间】:2014-06-17 21:19:56
【问题描述】:
我正在尝试加载 RSS 提要 http://feeds.feedburner.com/foxnews/latest,但在 SyndicationFeed.Load() 函数中出现日期时间解析错误,因为它无法解析 Tue, 17 June 2014 02:38:06 EDT 任何建议?
我已经在使用这个自定义 xml 阅读器 (http://brian-federici.com/blog/2012/9/21/exceptions-with-rss20feedformatterdatefromstring) 来支持多种格式,但它仍然不支持这种格式。
谁能帮我看看如何在 C# 中将此 Tue, 17 June 2014 02:38:06 EDT 解析为 DateTime 对象
【问题讨论】:
-
你试过 DateTime.Parse 吗?
-
@bubbinator 它不起作用。我认为它不喜欢约会两次。
-
@Elias 日期有两次?你的意思是它有日期和时间?
-
为什么这个问题被标记为重复......答案在哪里?
-
你明白了吗?
标签: c# timezone rss-reader syndication-feed