In my XSL file, I set my date like this:

<xsl:value-of select="ddwrt:FormatDate(@Date, 2057, 3)" />

This gives me an English date like 07 April 2015. Can I get this date in French?

有帮助吗?

解决方案

Just replace 2057 with 1036 (the LCID of fr-FR) and it should render the date in a French format.

The possible values for the third parameter, which control what type of date string is rendered, are listed in the MSDN blog post “Custom Date Formats in SharePoint XSL”.

许可以下: CC-BY-SA归因
scroll top