Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5640 Prikazi

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

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

Thanks.

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
dec. 19
5274
3
avg. 19
6914
3
jun. 25
1004
1
jul. 23
3693
2
mar. 23
5103