New to KendoReactStart a free 30-day trial

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.

offsetnumber

The number of days to add and subtract from the date.

Returns:

Date

  • A new Date instance.
In this article
Definition
Not finding the help you need?
Contact Support