How to change date and time format in Pods Framewo

2019-07-06 06:54发布

I was fighting with timepicker's default settings. The default settings were overridden somehow. Then, I noticed that they were actually overridden by Pods Framework's code:

var pods_form_ui_pods_field_baslangic_tarihi_args = {"timeFormat":"h:mmtt","dateFormat":"mm\/dd\/yy","ampm":true};

I would like to change the default settings of date and time formatting. How can I do that?

2条回答
狗以群分
2楼-- · 2019-07-06 07:24

In the date format field

  • m shows month as 2 digits ie 06,
  • n shows month as 1 digit ie 6,
  • l shows day of week in full ie Monday,
  • 'o' shows full year ie 2018,
  • 'a' shows am or pm,
  • 'A' shows AM or PM,
  • 'F' shows full month name ie June
  • 'S' shows date number suffix such as rd or th in 23rd or 4th
查看更多
该账号已被封号
3楼-- · 2019-07-06 07:31

I found the answer.

You need to got to the Edit Pod page and enter the date/time field and go to "Additional Field Options":

查看更多
登录 后发表回答