Brian Dunning's FileMaker Custom Functions

ISO8601ParseDate ( isoDate )

Strictly parse a YYYY-MM-DD ISO 8601 Date into a FileMaker Date.

  Be the first to rate this function Log in to vote

Sam Barnum   Sam Barnum - Show more from this author
360Works
http://360works.com

Share on Facebook Share on Twitter

  Sample input:
ISO8601ParseDate("1975-06-09")
  Sample output:
06/09/1975

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

Tries to be strict in parsing, to avoid any invalid characters, decimal points, and out-of-range issues with months / days.

 

Comments

Beverly Voth   Beverly Voth, beverlyvoth
Feb 27, 2020
Did you know that YYYY+MM+DD is a valid `DATE` field for FileMaker? You can just Substitute( theDate ; "-" ; "+" )
This should work to return m/d/yyyy (or d/m/yyyy for those who use it). Make sure the result is DATE type. IDK FM the version that this became possible, so YMMV (or YKMV).
 

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: