Skip to Content
Menú
This question has been flagged
1 Respondre
5572 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
5211
3
d’ag. 19
6815
3
de juny 25
842
1
de jul. 23
3523
2
de març 23
5003