Brian Dunning's FileMaker Custom Functions

DateTimeAsSerial ( DateTime ; ElemSep ; SectSep )

Returns the date and time in a TEXT string that can be ordered properly.

  Average rating: 4.4 (33 votes) Log in to vote

Doug Larsen   Doug Larsen
August Technology
http://www.AugustTech.com

Share on Facebook Share on Twitter

  Sample input:
DateTimeAsSerial ( "1/9/2006 2:05 PM" , "-", "_" )
  Sample output:
2006-01-09_14-05-00

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

Returns the date and time in a TEXT string that can be ordered (sorted) properly.
Works well for appending to filenames to capture sequential print jobs.

 

Comments

Jim Harris   Jim Harris, Bridgewater, NJ
Jan 30, 2009
Works great !!

I converted a FMPro timestamp field into one that was sortable.

Thank you very much.
Joel
 

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.