Brian Dunning's FileMaker Custom Functions

TimeAsText ( theTime )

Converts time to a text format using a 12-hour clock.

  Average rating: 4.5 (28 votes) Log in to vote

Howard Schlossberg   Howard Schlossberg - Show more from this author
FM Professional Solutions

Share on Facebook Share on Twitter

  Sample input:
TimeAsText ( GetAsTime ( "15:05" ) )
  Sample output:
3:05 PM

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

When a time is combined into a calc with other text, the result needs to be text. As such, you cannot use FileMaker's built-in layout time formatting to properly format the time in a layout field object. The default is for FMP to show time in a 24-hour format. This function provides a simple means of always showing the time in a 12-hour format.



Jon Davidson   Jon Davidson, Cazenovia, NY
Jan 13, 2013
Thank you, thank you, thank you. I've been searching the Filemaker Tech site for an answer to show the time value in a Variable without showing seconds. I couldn't find an answer until I stumbled accross you custom function. It was perfect.

Log in to post comments.


Note: these functions are not guaranteed or supported by 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: