Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5718 มุมมอง

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"}'
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 19
5367
3
ส.ค. 19
6987
3
มิ.ย. 25
1130
1
ก.ค. 23
3831
2
มี.ค. 23
5216