Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Re: Sorting Date/Time Format "Tue, 04 May 2004 03:13:29 GMT" (http://www.velocityreviews.com/forums/t77375-re-sorting-date-time-format-tue-04-may-2004-03-13-29-gmt.html)

Peter Rilling 05-04-2004 07:29 PM

Re: Sorting Date/Time Format "Tue, 04 May 2004 03:13:29 GMT"
 
To convert it, try using XmlConvert.ToDateTime.

"George" <gdurzi@hotmail.com> wrote in message
news:95A568BE-B378-45FE-BB72-783DC81DC180@microsoft.com...
> I'm getting Xml back from an RSS feed. (snippet is pasted below).
> I'm constructing a DataSet out of this Xml by doing a

DataSet.ReadXml(rssurl)
>
> check out the pubDate, it comes in the format
> DayofWeek, Day Month Year Time TimeZone
> Tue, 04 May 2004 03:13:29 GMT
>
> Currently it comes in as text and isn't sortable. Is this dateformat

convertable to a System.DateTime?
>
> <item

rdf:about="http://us.rd.yahoo.com/dailynews/rss/search/bill+gates/*"><title>
<![CDATA[ Bill Gates fined 800,000 dollars for merger violation (AFP via
Yahoo!
News) ]]></title><link>http://us.rd.yahoo.com/dailynews/rss/search/bill+gate
s/SIG=12uo2slu5/*http%3A//news.yahoo.com/news?tmpl=story&u=/afp/20040504/tc_
afp/us_justice_gates_040504031329</link><pubDate>Tue, 04 May 2004 03:13:29
GMT</pubDate><description><![CDATA[ The world's richest man, &lt;b&gt;Bill
Gates&lt;/b&gt;, agreed to pay an 800,000 dollar civil penalty to settle
charges he violated merger reporting requirements on an investment he made,
officials said.]]></description></item>




All times are GMT. The time now is 04:39 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.