Skip to Content
Menu
This question has been flagged
1 Atsakyti
5695 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
5341
3
rugp. 19
6943
3
birž. 25
1071
1
liep. 23
3770
2
kov. 23
5185