Вычтите 18 лет с сегодняшнего дня JavaScript
eighteenYearsAgo = new Date();
eighteenYearsAgo = eighteenYearsAgo.setFullYear(eighteenYearsAgo.getFullYear()-18);
console.log(eighteenYearsAgo);
NidhiLive