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 - Show more from this author
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.

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: