Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5932 Vues

Using datetime.strftime, the system will always use the locale language.

How can I get month and weekday names in users language?

Thanks.

Avatar
Ignorer
Meilleure réponse

Hello,

for month:

span t-field="o.invoice_date" t-options='{"widget": "date", "format": "MMMM"}'



for weekday:

span t-field="o.invoice_date" t-options='{"widget": "date", "format": "EEEE"}'
Avatar
Ignorer
Publications associées Réponses Vues Activité
2
déc. 19
5533
3
août 19
7385
3
juin 25
1446
1
juil. 23
4244
2
mars 23
5531