Can I output a date in French from an XSL file?
-
04-10-2020 - |
Pergunta
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?
Solução
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”.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange