Answers for "current date minus 18 years javascript"

0

subtract 18 years from today javascript

eighteenYearsAgo = new Date();
eighteenYearsAgo = eighteenYearsAgo.setFullYear(eighteenYearsAgo.getFullYear()-18);
console.log(eighteenYearsAgo);
Posted by: Guest on February-27-2021

Code answers related to "current date minus 18 years javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language