Brian Dunning's FileMaker Custom Functions

TimeDisp ( InTime )

Returns a text version of the time.

  Be the first to rate this function Log in to vote

Richard DeShong   Richard DeShong - Show more from this author
Logic Tools
http://logictools.com

Share on Facebook Share on Twitter

  Sample input:
TimeDisp ( 14:32:41 )
  Sample output:
"2:32p"

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

I needed a compact way to display the time (it was part of the portal listing).
So I used "a"/"p" instead of "am"/"pm", and did not need to see the seconds.
If no minutes, then displays just the hour: 10:00:00 => "10p".
If hour >= 24, then no a/p: 25:15 => "25:15".

 

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: