M/D/YYYY H:MM:SS
is it the same if I need to change from M/D/YYYY H:MM:SS to YYYY-MM-DD?
or should I first convert to MM/DD/YYYY HH:MM:SS?
<xsl:variable name="date" select="xs:date(concat(
substring($d,6,4),'-',
substring($d,1,2),'-',
substring($d,3,2)
))"/>
<xsl:value-of select="format-date($date,'[Y1,4]-[M2]-[D2]')"/>
with substring, unless I do not understand something it seems not possible to tell a regular start and length as both M and D might actually be 2 characters.
thanks for any help
Last edited by pietromaria.liuzzo; March 6th, 2014 at 05:03 AM..
|