is date greater than 18 years old javascript

Solutions on MaxInterview for is date greater than 18 years old javascript by the best coders in the world

showing results for - "is date greater than 18 years old javascript"
Greta
13 Oct 2016
1function isDate18orMoreYearsOld(day, month, year) {
2    return new Date(year+18, month-1, day) <= new Date();
3}
4