I am trying to retrieve some string from xml and convert it into equivalent date but it's not working out.Following is the code I am using:
var Pubdate = DateTime.Parse((sourcei.Element("pubDate").Value).Replace("\t","").Replace("\n",""));
This is the actual tag which I am trying to parse:
<pubDate>
Mon, 09 Sep 2013 13:47:57 EDT
</pubDate>
(Yes,there are spaces in original tag).
So,what's going wrong?