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

<field name="booking_date" /> 

this field is showing date like ----- 12/27/2022

i want this in ---- 27/12/2022 formate

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Try like below.

<field name="date_deadline" eval="DateTime.today().strftime('%Y-%m-%d %H:%M')"/>


Use the strftime() function and put the format.

Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 25
1103
1
ม.ค. 25
17977
1
ม.ค. 20
3969
1
ธ.ค. 19
6401
1
ธ.ค. 19
17279