Brian Dunning's FileMaker Custom Functions

TwelveHourTimeConversion ( fmtime )

Display FileMaker Time and TimeStamp fields in 12 hr time format

  Average rating: 5.0 (1 vote) Log in to vote

Tom G   Tom G - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
TwelveHourTimeConversion ( Get ( CurrentTime ) )
  Sample output:
5:08 PM

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

This function displays 24 hour time as 12 hour time without seconds in FileMaker Time and TimeStamp fields for use in text fields and variables.

Example: A text field containing a calculation of
"The current time is " & Get ( CurrentTime )
would display "The current time is 5:08:50 PM" or "The current time is 17:08:50".

If the calculation was
"The current time is " & TwelveHourTimeConversion ( Get ( CurrentTime ) )
the result would be "The current time is 5:08 PM"

If the parameter was empty, the function result would be blank.

 

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 16 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: