addDays
Function
Definition
Package:@progress/kendo-date-math
Syntax:
ts
addDays(new Date(2016, 0, 1), 5); // 2016-1-6
addDays(new Date(2016, 0, 1), -5); // 2015-12-26
A function that adds and subtracts days from a Date object.
Parameters:dateDate
The initial date value.
offsetnumberThe number of days to add and subtract from the date.
Returns:Date
- A new
Dateinstance.