David Jondreau Posted April 5, 2010 Posted April 5, 2010 (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 April 5, 2010 by Guest
David Jondreau Posted April 5, 2010 Author Posted April 5, 2010 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 )
comment Posted April 5, 2010 Posted April 5, 2010 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 ) ) ) )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now