Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5404 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I know this has been answered but can't get the Search feature to cough up the right results.

Give a birth date and Get(CurrentDate) what's the calculation for an exact age?

Edited by Guest
Posted

I took a stab at it and think this is right...Comments appreciated.

Let([

bday = table::Birth Date;

mBday = Month(bday);

dBday = Day(bday);

DateBday = Date(mBday; dBday; 2000);

today = Get(CurrentDate);

mToday = month(Today);

dToday = Day(Today);

DateToday = Date(mToday; dToday; 2000);

result = Year(today) - Year(bday) - ( DateBday > DateToday)

];

result

)

Posted

Don't see why you need the 2000 thing:

Let (

today = Get (CurrentDate)

;

Year ( today ) - Year ( DOB ) - ( today < Date ( Month ( DOB ) ; Day ( DOB ) ; Year ( today ) ) )

)

This topic is 5404 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.