Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Sorting Date/Time Format "Tue, 04 May 2004 03:13:29 GMT"

Reply
Thread Tools

Re: Sorting Date/Time Format "Tue, 04 May 2004 03:13:29 GMT"

 
 
Peter Rilling
Guest
Posts: n/a
 
      05-04-2004
To convert it, try using XmlConvert.ToDateTime.

"George" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner's Networking Query - this may or may not be a problem slaterino@googlemail.com Cisco 1 03-25-2007 05:34 AM
BayPIGgies: May *THIRD* Thursday at Google (May 19) Aahz Python 0 04-22-2005 11:59 PM
News Proxy may be why many people may have missed the vote Renee Digital Photography 5 10-27-2004 06:02 AM
How to optionally use classes that may or may not be installed ? Sam Iam Java 0 01-31-2004 04:09 AM
how may in hell may i take advantage of a IF statement in two separate functions? like quit anytime with button Q Rahmi Acar C++ 5 07-28-2003 08:14 AM



Advertisments