Solved

24-Hour Time Format

  • 3 March 2021
  • 4 replies
  • 238 views

Hello all,

 

I am using the "Format Date to String" to get time in the format I like. Currently, I am using the MMMM DD YYYY HH:mm:ss format with the "Current data and time" variable.

 

However, this outputs a 24-hour format instead of a 12-hour format.

Is there a solution to get the time in a 12-hour format instead?

 

I'm sorry if this has been answered elsewhere, I have been unable to find a solution on the forum.

Thank you very much!

icon

Best answer by leighburke 4 March 2021, 22:36

View original

4 replies

Userlevel 5
Badge +13

@fish Where is the date coming from is it on a start form? or being brought in via a connection?

@leighburke I am using the context variable "Current Date and Time" to get the time the form was submitted and then creating the output "FormSubmittedDate".


 


Hopefully this helps

Userlevel 5
Badge +13

@fish If you use the functions on the form you will be able to get a 12 hour time date in text. The format date function will allow you choose the format like below.


 



 

Thank you very much for your help!

Reply