Actually i'm planning to make a user registration page over swings and i decided that there should be a constraint that people with age below 21 cannot register. I want to make a validation of the date input of the user by calcualting the age and checking with if loop.
For example :
if my users input is: 21/06/2006
the code should extract the year from the input and from the current date, calculate the age and verify it with If loop.
Is it possible to exrtract the year from the input...
Any Built-in functions??? Pls help in this context my fellow Daniweb users...