Subject: RE: [xsl] DATE FORMAT From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx> Date: Mon, 1 Sep 2003 13:05:15 +0100 |
> i have this date in the XML file: > <MVLC_ISS_DATE>2003-08-22T00:00:00.0000000+02:00</MVLC_ISS_DATE> > How an i format it using XSLT to: > < MVLC_ISS_DATE>22-08-2003</MVLC_ISS_DATE> Use the substring-after() and substring-before() functions, <xsl:value-of select="substring-before(substring-after(substring-after(MVLC_ISS_DATE, '-'), '-'), 'T')"/> <xsl:text>-</xsl:text> <xsl:value-of select="substring-before(substring-after(MVLC_ISS_DATE, '-'), '-')"/> <xsl:text>-</xsl:text> <xsl:value-of select="substring-before(MVLC_ISS_DATE, '-')"/> cheers andrew XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] DATE FORMAT, Jarno . Elovirta | Thread | RE: [xsl] Re: EXSL's dyn:evaluate(), David . Pawson |
[xsl] XSL-List Guidelines, Mulberry Technologie | Date | Re: AW: [xsl] Instant Saxon, michel geadah |
Month |