I am trying to format the dates correctly in Sharepoint Designer.
This line of code does work but I am getting spurious results as my dates are in UK formatting.
<xsl:value-of
select=
"number(ddwrt:DateTimeTick(
ddwrt:GenDisplayName(string(FormatDate(@DateSent,2057,1)))))-
number(ddwrt:DateTimeTick(
ddwrt:GenDisplayName(string(FormatDate(ddwrt:Today(),2057,1)))))"
/>
The error that I am getting is:
FormatDate is not a valid XSLT or XPath function.
Thanks in advance.