[xsl] RSS Feeds, Dates, Transformation with Exslt

Subject: [xsl] RSS Feeds, Dates, Transformation with Exslt
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Thu, 24 Feb 2005 13:51:07 -0700

Recently I attempted to transform the RSS pubDate using the Exslt
format-date function.  I was dissapointed to find out that the RSS
date format doesn't appear to be a valid XML date format.  Now, this
is something that I have come across before, not with RSS but with
data (dates) I was feading to an XML source from a database.  The
issue was that the field in the database was not an actual date field
but a character field, hence the date entered in this field was
something like "02-04-2004", a format not supported by the format-date
function in the MSXML extensions or EXSLT extensions (do we call these

So, what is the best way to handle dates?  Do you have to insure that
the date format is something like this:

Is there another way to get from weird date formates like this example:
<pubDate>Wed, 23 Feb 2005 16:12:56 GMT</pubDate>
..to a format that is recognizable by the parsers?


Current Thread