Add days to a date object.


targetDate Date

The date object to add days to.

numberOfDaysToAdd Number

The number of days to be added to the target date.


Date Returns a new date object with added days.


    var targetDate = new Date(2016,10,5,15,25,11);
    var newDate =, 4);
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(newDate); // Wed Nov 09 2016 15:25:11 GMT+0200 (FLE Standard Time)
In this article
Not finding the help you need? Improve this article