How to format time as AM/PM format?


Any idea of how to format a time as AM/PM, 12hrs format?

Example: 23:52  should look like 11:53PM.

Use the Essentials component
Using Essentials to get mm/dd/yyyy hh:mm AM

+ " " +
So basically you can't do this in any 8.0 version? Does 9.0 support this display format without this plugin? 
Check out the Text component I believe, in there there is also a format_datetime action?

You can do this in any version. You have to code it. If the hour is < 12 it's AM, otherwise subtract 12 from the hour and slap a PM onto it.
... or you can use the Essentials component
The Essentials component works great. I would recommend it.

SyntaxEditor Code Snippet

FormatDateTime(CurrTime(),"hh:mm tt")


João Cabaço wrote:

SyntaxEditor Code Snippet

FormatDateTime(CurrTime(),"hh:mm tt")

thank you . You save my day.