I am using the repeatable custom content control v2 fixed. There are 2 properties a date picker and a textstring. The date picker stores the date in this format: 14/04/2010 00:00:00
When I try to format this in XSLT nothing is returned. I have tested in other date formats (e.g. 04/14/2010) and they are formated properly. Here is the code from my XSLT: <xsl:value-of select="umbraco.library:FormatDateTime(./data [@alias='eventDate'], 'MM.dd.yy')" />
Any insight into this would be greatly appreciated!!!
umbraco.library:FormatDateTime problem
Umbraco 4.0.3
Repeatable Custom Content v2 Fixed
I am using the repeatable custom content control v2 fixed. There are 2 properties a date picker and a textstring. The date picker stores the date in this format: 14/04/2010 00:00:00
When I try to format this in XSLT nothing is returned. I have tested in other date formats (e.g. 04/14/2010) and they are formated properly. Here is the code from my XSLT: <xsl:value-of select="umbraco.library:FormatDateTime(./data [@alias='eventDate'], 'MM.dd.yy')" />
Any insight into this would be greatly appreciated!!!
Thanks!
I should clearify.. 14/04/2010 00:00:00 will not ouput as 4/14/2010.. but if I manually put in 4/14/2010 as the input date it will format to 04.14.10.
I dunno if you have written the first parameter wrong. When i put in the first parameter i done use ./data just the data
your xslt:
<xsl:value-of select="umbraco.library:FormatDateTime(./data [@alias='eventDate'], 'MM.dd.yy')" />
my version:
<xsl:value-of select="umbraco.library:FormatDateTime(data [@alias='eventDate'], 'MM.dd.yy')" />
i hope this helps, even tho its a minimal change
is working on a reply...