Botuist Posted April 18, 2007 Share 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! Link to comment Share on other sites More sharing options...
mr_vodka Posted April 18, 2007 Share Posted April 18, 2007 Check out this post Link Link to comment Share on other sites More sharing options...
Stuart Taylor Posted April 18, 2007 Share 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" ) ) Link to comment Share on other sites More sharing options...
Botuist Posted April 18, 2007 Author Share Posted April 18, 2007 Thanks so much Vodka! That did the trick and works wonderfully! Link to comment Share on other sites More sharing options...
Stuart Taylor Posted April 18, 2007 Share Posted April 18, 2007 :tears: Link to comment Share on other sites More sharing options...
mr_vodka Posted April 18, 2007 Share Posted April 18, 2007 :therethere: There there Stuart. I am more than sure Botuist didnt meant to snub your assistance. Link to comment Share on other sites More sharing options...
Stuart Taylor Posted April 18, 2007 Share Posted April 18, 2007 :violin: Link to comment Share on other sites More sharing options...
comment Posted April 19, 2007 Share Posted April 19, 2007 Console yourself with this. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6209 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