Skip to Content
Menu
This question has been flagged
1 Atsakyti
5698 Rodiniai

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

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

Thanks.

Portretas
Atmesti
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"}'
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 19
5343
3
rugp. 19
6945
3
birž. 25
1079
1
liep. 23
3776
2
kov. 23
5186