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

lastYearOfDecade

A function that returns a Date object of the last year in a decade.

ts
lastYearOfDecade(new Date(2017, 0, 1)); // 2019-1-1
lastYearOfDecade(new Date(2007, 10, 22)); // 2009-11-22
lastYearOfDecade(new Date(2026, 0, 1)); // 2029-1-1

Parameters

value Date

Returns

Date - The last year in a decade.

Not finding the help you need?
Contact Support