XSLT format-date() not recognised as a function. What am I doing wrong
Posted on 2011-09-10
I have an xml file with a date e.g
<expenseDate>2011-07-31T00:00:00</expenseDate> and I want to format it So iy reads
July 32, 2011. When creating the stylesheet I tried the following
<xsl:value-of select="format-date(expenseDate, '[MNn] [D1], [Y]'])" />
However I get an error when displaying the web page saying that format-date() is not a recognised function in XSLT (I am using version="2".
Any help appreciated