addCenturies
Function
Definition
Package:@progress/kendo-date-math
Syntax:
ts
addCenturies(new Date(2016, 5, 1), 5); // 2516-6-1
addCenturies(new Date(2016, 5, 1), -5); // 1516-6-1
A function that adds and subtracts centuries from a Date object.
Parameters:valueDateoffsetnumber
The number of centuries to add or subtract from the date.
Returns:Date
- A new
Dateinstance.