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

I have a datetime attribute into my db. I would like to view (not write: only view) it as date. Is it possible?

頭像
捨棄
最佳答案

yes, using widget="date" with the corresponding field.

example:

<field name="your_datetime_field_name" widget="date"/>
 

頭像
捨棄
作者

Thank you!

相關帖文 回覆 瀏覽次數 活動
2
7月 18
6970
3
8月 20
9866
3
6月 25
890
0
4月 24
1827
4
11月 23
5870