I’m surprised this isn’t built in.. I had the hardest time finding how to convert ATOM time (found in many RSS feeds) to something human-readable. The cleanest solution I have found thus far is this:
That outputs “04.22.06” but you can use any of the formats available from php date().
var atomdate = items[n].getElementsByTagName(‘published’).item(0).firstChild.data;
var itemPubDateDay = atomdate.substr(0, 10);
var itemPubDateTime = atomdate.substr(11, 8 );
And this time in ASP