aria Posted August 3, 2008 Posted August 3, 2008 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
Søren Dyhr Posted August 3, 2008 Posted August 3, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now