Brian Dunning's FileMaker Custom Functions

years ( date1 ; date2 )

gets the years between two dates

  Average rating: 4.3 (28 votes) Log in to vote

Bailey Kessing   Bailey Kessing - Show more from this author
NCI-Frederick
http://kessing.com

Share on Facebook Share on Twitter

  Sample input:
years ( "12/18/1961" ; Get ( CurrentDate )) )
  Sample output:
44.6160164271047228

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

Calculates the years between any two dates, like birthday and current date for getting the age of a person. But does it correctly, taking into consideration leap year, etc. Others I have seen have not been correct.

 

Comments

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: