跳至內容
選單
此問題已被標幟
1 回覆
5642 瀏覽次數

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
5274
3
8月 19
6916
3
6月 25
1007
1
7月 23
3698
2
3月 23
5108