Answers for "how to add 14 days to a date in javascript"

1

javascript current date add 30 days

var future = new Date();
future.setDate(future.getDate() + 30);
Posted by: Guest on April-26-2020
0

javascript add days

Date.prototype.addDays = function(days) {
    var date = new Date(this.valueOf());
    date.setDate(date.getDate() + days);
    return date;
}
Posted by: Guest on April-20-2021

Code answers related to "how to add 14 days to a date in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language