Brian Dunning's FileMaker Custom Functions

timeStampFormat ( YYYYMMDDHHMMSS )

converts timestamp string to filemaker timestamp

  Average rating: 4.2 (26 votes) Log in to vote

Hudi Moskowitz   Hudi Moskowitz

Share on Facebook Share on Twitter

  Sample input:
timestampFormat ( 20050110045253 )
  Sample output:
1/10/2005 4:52:20 AM

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

Converts long timestamp ( I'm getting it from hl7 ) to a FM formatted timestamp.



comment   comment, VR
Feb 5, 2016
You should use the Date() and Time() functions for this, instead of GetAsDate () and GetAsTime (). That will make your function work correctly regardless of the local date and time settings.

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: