Brian Dunning's FileMaker Custom Functions

Full Age ( birthdate )

calculate full age in Y M D

  Be the first to rate this function Log in to vote

bob   bob - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
fullAge(date)
  Sample output:
xxYears yyMonths zzDays

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

just copy and paste - italian language token will be translated to your language

 

Comments

mthorslund   mthorslund
Aug 15, 2019
My FileMaker didn't translate the function names so I translated them myself. English should work in all language versions of FM but I don't expect all language versions will accept all languages. For what it's worth:

GetAsNumber ( Year ( Get ( CurrentDate ) ) - Year ( Birthdate ) - If ( Get ( CurrentDate ) < Date ( Month ( Birthdate ) ; Day ( Birthdate ) ; Year ( Get ( CurrentDate ) ) ) ; 1 ; 0 ) )
& " Years, " &
GetAsNumber ( Mod ( Month ( Get ( CurrentDate ) ) - Month ( Birthdate ) + 12 - If ( Day ( Get ( CurrentDate ) ) < Day ( Birthdate ) ; 1 ; 0 ) ; 12 ) )
& " Months, " &
GetAsNumber ( Day ( Get ( CurrentDate ) ) - Day ( Birthdate ) + If ( Day ( Get ( CurrentDate ) ) ≥ Day ( Birthdate ) ; 0 ; If ( Day ( Get ( CurrentDate ) - Day ( Get ( CurrentDate ) ) ) < Day ( Birthdate ) ; Day ( Birthdate ) ; Day ( Get ( CurrentDate ) - Day ( Get ( CurrentDate ) ) ) ) ) )
& " Days"
 
bob   bob
Aug 15, 2019
please remove this function. discovered was on already. not found during preventive search. sorry
 
Josh Ormond   Josh Ormond, Iozax, LLC
Aug 24, 2019
You can delete the function. Go to 'My Account' > Edit Function > Delete
 

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 15 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: