This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Converting date formats


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]