Subject: Re: [xsl] Converting date formats From: Gary Frederick <gary.frederick@xxxxxxxxx> Date: Thu, 07 Jun 2001 13:41:22 -0500 |
... <DTSTART> <param kind="TZID">CT(America/Chicago)</param> <value>20010609T090000</value> </DTSTART>
The stylesheet parts are ... <xsl:call-template name="DATE"> <xsl:with-param name="this-date" select="DTSTART/value"/> </xsl:call-template> ... <xsl:template name="DATE"> <xsl:param name="this-date"/>
<xsl:call-template name="dt:format-date-time"> <xsl:with-param name="year" select='substring($this-date, 1, 4)' /> <xsl:with-param name="month" select='substring($this-date, 5, 2)'/> <xsl:with-param name="day" select='substring($this-date, 7, 2)'/> <xsl:with-param name="hour" select='substring($this-date, 10, 2)'/> <xsl:with-param name="minute" select='substring($this-date, 12, 2)'/> <xsl:with-param name="second" select='substring($this-date, 14, 2)'/> <xsl:with-param name="time-zone"></xsl:with-param> <xsl:with-param name="format" select="'%Y-%m-%dT %H:%M:%S'" /> </xsl:call-template> </xsl:template>
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>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Converting date formats, Michael Kay | Thread | RE: [xsl] Converting date formats, Hewko, Doug |
RE: [xsl] Performance, Michael Fitzgerald | Date | Re: [xsl] A whitespace question, bu, Chris Nolte |
Month |