Wednesday, March 24, 2010

Converting string pubDate to C# DateTime

pubDate format for RSS2.0 - Tue, 16 Mar 2010 11:05:35 GMT

DateTime pubDate;
if (DateTime.TryParse(date, out pubDate))
{
pubDate = Convert.ToDateTime(date);
}

No comments:

Post a Comment