Skip to main content
December 14, 2023
Question

12Hr to 24Hr time format

  • December 14, 2023
  • 2 replies
  • 0 views

Hi

What is the best way to convert it the time from 12hr AM/PM format to 24hr format as the users are getting confused and incorrectly inputting AM/PM leading to challenges.

What is the best way then to represent this as a date and time picker in minute intervals for users.

Thank you.

2 replies

davidg426798
December 14, 2023

I'm not sure I understand the question. Assuming you've got a date/time object (rule input, record field, etc.), the dataTimeField will display using AM/PM. You can use the text(.."hh:mm") function to display the value in 24hr format in a textField; see the documentation for the text function here.

December 20, 2023

Thanks for other users reference.

The time format is determined by the locale selected by the user:

If the user's locale is set to English US, the displayed time in a date and time component would be in a 12h format, whereas if it's set to English UK or Spanish, the user would see a 24 hours format.

docs.appian.com/.../Date_and_Time_Component.html