addDays

Add days to a date object.

Parameters

targetDate Date

The date object to add days to.

numberOfDaysToAdd Number

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

Returns

Date Returns a new date object with added days.

Example

<script>
    var targetDate = new Date(2016,10,5,15,25,11);
    var newDate = kendo.date.addDays(targetDate, 4);
    console.log(newDate); // Wed Nov 09 2016 15:25:11 GMT+0200 (FLE Standard Time)
</script>
In this article
Not finding the help you need? Improve this article