Tanggal lebih besar dari 18 tahun JavaScript
function isDate18orMoreYearsOld(day, month, year) {
return new Date(year+18, month-1, day) <= new Date();
}
Awful Antelope
function isDate18orMoreYearsOld(day, month, year) {
return new Date(year+18, month-1, day) <= new Date();
}