Answers for "add 1 year to given date in javascript"

0

add 1 year to given date in javascript

var d = new Date();
    var year = d.getFullYear();
    var month = d.getMonth();
    var day = d.getDate();
    var c = new Date(year);
    console.log(c);
 Run code snippetHide results
Posted by: Guest on December-24-2021

Code answers related to "add 1 year to given date in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language