eighteenYearsAgo = new Date(); eighteenYearsAgo = eighteenYearsAgo.setFullYear(eighteenYearsAgo.getFullYear()-18); console.log(eighteenYearsAgo);