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
Filemechanic
http://filemechanic.com

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.

 

Comments

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 BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.