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 4869 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I try to find out a formula to calculate UPDATE age,,, here is the formula I use right now

Year(Get(CurrentDate)) - Year(DateOfBirth)

but it will not update, for example:

DateOfBirth = 09/18/1980

Today= 09/17/2011

so,, today age is 29

it should turn to 30 tomorrow,,, but the formula wont update the age..... any solution, thank you

Posted

it should turn to 30 tomorrow

The formula you are using takes into account only the year - therefore it will change only on January 1. If you want a more accurate calculation, use =

Let ( [

today = Get (CurrentDate)

] ;

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

)

---

P.S. Make sure the calculation field is unstored.

Posted

My dad and I made this calc. It is accurate to the day.

Let ( X = DateOfBirth ; Let ( y = Get ( CurrentDate ) ;

If ( Month ( y ) = Month ( X ) ; If ( Day ( y ) ≥ Day ( X ) ; Year ( y ) - Year ( X ) ; Year ( y ) - Year ( X ) - 1 )

; If ( Month ( y ) > Month ( X ) ; Year ( y ) - Year ( X ) ; Year ( y ) - Year ( X ) - 1 ) ) )

)

Hope this helps!

This topic is 4869 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.