Skip to Content
Menu
This question has been flagged
1 Odpoveď
5637 Zobrazenia

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

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

Thanks.

Avatar
Zrušiť
Best Answer

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
dec 19
5272
3
aug 19
6912
3
jún 25
1002
1
júl 23
3684
2
mar 23
5099