Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5665 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
5309
3
août 19
6921
3
juin 25
1026
1
juil. 23
3724
2
mars 23
5120