I will get the date of birth value dynamically from users visiting to the site, but when the user will insert birthday value I have to check whether the user is 18 years old or not.
user will insert a value like 18/09/2012
as dd/mm/yyyy
format.
var arr = date.split("/"); //date is the value of birth date.
var day = arr[0];
var month = arr[1];
var year = arr[2];
How should I do it?