Hello,
I have found information about how to change date time format in DateTime field, but when clicking clock icon to select the time form dropdown list, the hours are still in AM/PM format, how to change pickable hours to 24h format?
Hello @szymanskicode
Try this
Eventually this approach to define time:
fd.field("dateField").widgetOptions = {
format: "dd. MM. yyyy hh:mm",
};
Experiment with it related to this article:
EDIT: Also depends on your regional settings in the Site settings
Hello @StepanS,
As I mentioned in my initial message i have no problem with formatting display datetime, example showed in docs is obvious, but i cant fint how to parse options list as showed on attached image.
When i select 1AM i see 13:00 what is correct but on options list instead of seeing 1AM i want to see also 13:00
widgetOptions: {format:} has no influence on options list.
Any suggesstions?
Hello @szymanskicode ,
I assume it respects the regional settings in Site settings.
For example my regional setting is:
I do not know if you can change the regional settings and if its suitable for you and your workmates/colleagues working on this site to change it. This approach might be the less painful - workaround.
Stepan
Hello @szymanskicode,
The date and time format relies on regional settings. But if you want, you can change the format of the time in the dropdown with the code:
fd.field('Field1').widgetOptions = {
timeFormat: "HH:mm"
}