Skip to Content
Menú
This question has been flagged
1 Respondre
5948 Vistes

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

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

Thanks.

Avatar
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
2
de des. 19
5533
3
d’ag. 19
7386
3
de juny 25
1446
1
de jul. 23
4244
2
de març 23
5531