New to Kendo UI for Angular? Start a free 30-day trial
durationInDecades
A function that calculates duration in decades between two Date
objects.
ts
durationInDecades(new Date(2016, 0, 1), new Date(2136, 0, 1)); // 12
durationInDecades(new Date(2016, 0, 1), new Date(2016, 0, 1)); // 0
Parameters
start Date
The start date value.
end Date
The end date value.
Returns
number - The duration in months.