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

Discussion in 'ASP .Net' started by Peter Rilling, May 4, 2004.

  1. To convert it, try using XmlConvert.ToDateTime.

    "George" <> wrote in message
    news:...
    > 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>
     
    Peter Rilling, May 4, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shaiboy_UK
    Replies:
    0
    Views:
    492
    Shaiboy_UK
    Oct 19, 2003
  2. Brian Candy
    Replies:
    2
    Views:
    1,179
    Janaka
    Feb 18, 2004
  3. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,302
    Michael Borgwardt
    May 30, 2004
  4. Summu82
    Replies:
    5
    Views:
    877
    Richard Heathfield
    Jun 7, 2006
  5. dch3
    Replies:
    2
    Views:
    520
Loading...

Share This Page