Can a "Time of Day" field show time in the format HH:mm AM/PM. Currently when I enter say 4:15 PM it displays it as 16:15. I would like to show the AM or PM.

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

Can a "Time of Day" field show time in the format HH:mm AM/PM. Currently when I enter say 4:15 PM it displays it as 16:15. I would like to show the AM or PM.

Photo of Brian

Brian

  • 120 Points 100 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of dwhawe

dwhawe, Champion

  • 742 Points 500 badge 2x thumb
Yes.  In the Display section of the Field Properties, un-check the 20-hour clock property.
Photo of Brian

Brian

  • 120 Points 100 badge 2x thumb
Ok Yes that works I should have been more specific.  It is when the "Time of Day" field is displayed on an Exact form is when it shows in 24 hour format...sorry.
Photo of dwhawe

dwhawe, Champion

  • 742 Points 500 badge 2x thumb
I would suggest asking the quest again but state that you are formatting time in Exact Forms.  I believe you use javascript in that i assume you are currently putting the field ID inside tildas like if the field ID is 10 you have ~10~ in your Exact Form.  I believe you are going to have something like ~var time=f[10];time.format("HH:MM A")~

But I suck at javascript so it is the proverbial shot in the dark.
Photo of Brian

Brian

  • 120 Points 100 badge 2x thumb
Ok...will do.  thanks for the help.