Brian Dunning's FileMaker Custom Functions

FormatTimeHHMM12 ( theTime )

Format time in HH:MM 12 hour format

  Be the first to rate this function Log in to vote

Robert D Trammel   Robert D Trammel - Show more from this author
https://www.linkedin.com/in/robertdtrammel/

Share on Facebook Share on Twitter

  Sample input:
FormatTimeHHMM12( Get( CurrentTimestamp ) )
FormatTimeHHMM12( Time( 17; 30; 0 ) )
FormatTimeHHMM12( "12:30:00" )
FormatTimeHHMM12( "0:15:00" )
  Sample output:
4:01 PM
5:30 PM
12:30 PM
12:15 AM

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

There are probably a dozen and a half ways to do this, but I found that this was a really nice simple function that will format something specifically as hh:mm am/pm.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: