Answers for "how to subtract 18 years from today 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
1

js date minus 18 years

use moment.js
Posted by: Guest on November-19-2020

Code answers related to "how to subtract 18 years from today javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language