Jump to content
Sign in to follow this  
Botuist

Age checker

Recommended Posts

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!

Share this post


Link to post
Share on other sites

Try this:

Let ( [

dob = 14/7/1976 ;

d18 = Date ( Month ( dob ) ; Day ( dob ) ; Year ( dob )+18 ) ] ;

Case ( d18 ≥ Get ( CurrentDate ) ; "18+" ; "minor" )

)

Share this post


Link to post
Share on other sites

:therethere:

There there Stuart. I am more than sure Botuist didnt meant to snub your assistance.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.