I am grabbing a pubDate node from a xml file, Item.PubDate have the date that I grabbed.
NewsItem.Date is my datetime column in my database table column.
But I cant seem to parse it to datetime.
I get "The string was not recognized as a valid DateTime, There is an unknown word starting at index 25"
Item.Pubdate have this value: "Thu, 9 May 2013 05:04:18 PDT"
When I try:
NewsItem.Date = DateTime.Parse(item.PubDate);
I get that error.
How come with other xml files that pubDates it works?
and they have "Thu, 09 May 2013 09:15:11 GMT"?