跳至内容
菜单
此问题已终结
1 回复
5688 查看

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

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

Thanks.

形象
丢弃
最佳答案

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"}'
形象
丢弃
相关帖文 回复 查看 活动
2
12月 19
5329
3
8月 19
6936
3
6月 25
1062
1
7月 23
3758
2
3月 23
5171