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

Recommended Posts

Posted

I am using this calculation to determine the age of an individual, but what I need to do is to compute the age using the Date of Birth from the Date of Death..

I replaced the [color:blue]now = Get ( CurrentDate ) ; with the DATEOFDEATH field, but an erronous answer.

Just can't seem to put my finger on what I am doing wrong.

Let ( [

now = Get ( CurrentDate ) ;

b = DOBdateField

] ;

Year ( now ) - Year( b ) - (( Month ( now ) + Day ( now ) / 100 ) < ( Month ( b ) + Day ( b ) / 100))

)

Posted

What do you want the results to look like.

50

49 years, 11 months, 17 days,

49 years

Or something else.

Lee

Posted (edited)

Here is a Custom Function that will do that:

Click Here

There are also a ton of example of age calculations around this Forum also that are not Custom Functions.

HTH

Lee

Edited by Guest
test
Posted

Having problems with this calc...

Let ( leapFactor = If ( Mod ( Year ( DEATHDATE ) ; 4 ) = 0 ; 1 ; 0 );

Case (

// Age in years

Format = 1 ; Year ( DEATHDATE ) - Year ( BIRTHDATE ) - ( ( DayOfYear ( DEATHDATE ) - leapFactor ) < DayOfYear ( BIRTHDATE ) );

What am I doing wrong? The Age field just shows a ?

Posted

The calculation contains is text, so change it from the default of Number to Text.

Lee

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