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
 
KHALID SAID   KHALID SAID , K.D
May 10, 2020
Hello my brothers ...
. Does the function update the date automatically when I come on the next day and I find that the function made the change only in the day, month, or year? ...

.. Thank you
 

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: