Subject: RE: Converting date formats
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 7 Jun 2001 14:58:52 +0100
|
> In my XML document, I have a date stored in ISO format:
> <LASTUPDATED FORMAT="ISODATE">20010125</LASTUPDATED>
>
> How can I convert this in my XSL file to dd/mm/yyy format
> (with the dashes)?
>
> I am currently using the command:
> <td><xsl:value-of select="LASTUPDATED"/></td>
>
Just reassemble the characters in the order required using the concat() and
substring() functions.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|