I have a custom XSL file I linked in one my view. I would like to display the created field value as a date only.
By now I have this xsl template :
<xsl:template name="FieldRef_ValueOf.Created"
ddwrt:dvt_mode="body"
ddwrt:ghost="">
<xsl:param name="thisNode"
select="."/>
<xsl:value-of select="ddwrt:FormatDate($thisNode/@*[name()=current()/@Name],1036,1)"/>
</xsl:template>
Unfortunately, the format date method does not seems to be applied. What is missing in my template?
Please note I did not forget to add this xml namespace: xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
[Edit]: I've changed a bit my template like this :
<xsl:template name="FieldRef_ValueOf.Created"
ddwrt:dvt_mode="body"
ddwrt:ghost="">
<xsl:param name="thisNode"
select="."/>
<span>here</span>
<xsl:value-of select="ddwrt:FormatDate(string($thisNode/@*[name()=current()/@Name]),1036,1)"/>
</xsl:template>
Especially, I added a "span" just to check if it's taken into account. And it seems the "here" word does not appears. Actually, I don't think the problem is due to the date formatting, but the template itself.
Is there any restriction related to this oob column?