New to Kendo UI for AngularStart a free 30-day trial

addCenturies

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

ts
addCenturies(new Date(2016, 5, 1), 5); // 2516-6-1
addCenturies(new Date(2016, 5, 1), -5); // 1516-6-1

Parameters

value Date
offset number

The number of centuries to add or subtract from the date.

Returns

Date - A new Date instance.

Not finding the help you need?
Contact Support