Sackgesicht VIP
Total posts: 1,636
25 May 2016 09:17

How to encode time based on AM/PM (12 hour) in date time field?

Last Modified: 12 Jun 2016


Sergey
Total posts: 13,748
05 Jun 2016 14:26

date is always encoded in one format. But you can display it differently. i think you have to use custom format using this simbols.

It should be something like this for you h:i A.


Sackgesicht VIP
Total posts: 1,636
06 Jun 2016 08:49

I was referring to the entry form. How to set the time picker to a 12 hour display?

2016-06-06_16-39-47


pepperstreet VIP
Total posts: 3,837
06 Jun 2016 14:04

Sackgesicht I was referring to the entry form. How to set the time picker to a 12 hour display?

I'am afraid it is not possible to change the time-picker input. It is always 24 hours. At least not possible by official parameters and options. Seems to be hardcoded into Picker.Date.js around line 555+.

I think Sergey is right, the output on the form (info alert) can be adjusted with a custom format. Not too bad.


BTW, what is the next jQuery Date/Time-Picker replacement for Cobalt v9 ? ;) Maybe mutliple solutions for different templates?


Sergey
Total posts: 13,748
12 Jun 2016 14:07

pepperstreet Maybe mutliple solutions for different templates?

Definitely. There will be a convention that it have to be array of dates, there should be format parameter in template and behavior indicator whigh are range, single, multiple. I have few ideas how to make it more versatile.

Powered by Cobalt