コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5676 ビュー

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
5312
3
8月 19
6928
3
6月 25
1039
1
7月 23
3735
2
3月 23
5157