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

<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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
6月 25
1118
1
1月 25
17980
1
1月 20
3975
1
12月 19
6415
1
12月 19
17284