I'm using a custom XSLT file to format the oob created column to not show time, only date.
I have this code :
<xsl:template name="FieldRef_ValueOf.Created"
match="FieldRef[@Name='Created']"
mode="DateTime_body">
<xsl:param name="thisNode"
select="." />
<xsl:value-of select="ddwrt:FormatDate($thisNode/@Created,1036,1)" />
</xsl:template>
As you can see, I specify the 1036 (French) culture.
However, this produces the date in the wrong format : month/day/year (01/10/2012
), instead of the expected day/month/year (10/01/2012
).
Why does this method behaves like this? How can I correct this?
FYI, if I set up the 1033 culture, the date is now in the correct French format.
In fact, the day and month seems to be swapped.
[edit] I found a KB entry at Microsoft. The XsltListViewWebPart seems to buggy. Unfortunately, the suggested workaround are not very satisfying.