New to KendoReactStart a free 30-day trial

addWeeks

Function

Definition

Package:@progress/kendo-date-math

Syntax:

ts
addWeeks(new Date(2016, 5, 1), 3); // 2016-6-22
addWeeks(new Date(2016, 5, 1), -3); // 2015-5-11

A function that adds and subtracts weeks from a Date object.

Parameters:dateDate

The initial date value.

offsetnumber

The number of weeks to add/subtract from the date.

Returns:

Date

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