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

Recommended Posts

Posted

Hi all,

I have the following age calculation that outputs such as year “12”

Is there a way to make the output year and months such as “12.3”




Let ( [

Date1 = id::id_birthdate;

Date2 = abc_date

] ;

Case ( not IsEmpty ( Date1 ) ;

Year ( Date2 ) - Year ( Date1 )

- ( Date2 < Date ( Month ( Date1 ) ; Day ( Date1 ) ; Year ( Date2 )))

)

)//result number

Thanks for any help. :

A

Posted

How about:


Let(

    [ Date1 = id::id_birthdate; Date2 = abc_date ];

    Round(

        Case(

            not IsEmpty( Date1 );

            Year( Date2 ) - Year( Date1 ) +

            ( DayOfYear( Date2 ) - DayOfYear( Date1 ) ) / 365

        );

        1

    )

)

)

//result number

--sd

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