is date greater than 18 javascript code example
Example: Is date greater than 18 years old javascript
function isDate18orMoreYearsOld(day, month, year) {
return new Date(year+18, month-1, day) <= new Date();
}
function isDate18orMoreYearsOld(day, month, year) {
return new Date(year+18, month-1, day) <= new Date();
}