Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5605 Zobrazení

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

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

Thanks.

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 19
5246
3
srp 19
6866
3
čvn 25
934
1
čvc 23
3608
2
bře 23
5043