This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Converting date formats
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Converting date formats
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 7 Jun 2001 14:58:52 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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