Botuist Posted April 18, 2007 Posted April 18, 2007 Hey guys, I am trying to figure out a calculation (which I am not good at) that will tell me whether a person is over 18 or not. We collect birthdates for applications and some of my co-workers have a hard time doing the math of how old they are. Any help would be appreciated. Thanks!
Stuart Taylor Posted April 18, 2007 Posted April 18, 2007 Try this: Let ( [ dob = 14/7/1976 ; d18 = Date ( Month ( dob ) ; Day ( dob ) ; Year ( dob )+18 ) ] ; Case ( d18 ≥ Get ( CurrentDate ) ; "18+" ; "minor" ) )
Botuist Posted April 18, 2007 Author Posted April 18, 2007 Thanks so much Vodka! That did the trick and works wonderfully!
mr_vodka Posted April 18, 2007 Posted April 18, 2007 :therethere: There there Stuart. I am more than sure Botuist didnt meant to snub your assistance.
Recommended Posts
This topic is 6489 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