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

isEqual

A function that compares two dates. The comparison also includes the time portion.

ts
isEqual(new Date(2016, 0, 1), new Date(2016, 0, 1)); // true
isEqual(new Date(2016, 0, 1), new Date(2016, 0, 2)); // false
isEqual(new Date(2016, 0, 1, 10), new Date(2016, 0, 1, 20)); // false

Parameters

candidate Date

The candidate date.

expected Date

The expected date.

Returns

boolean - A Boolean value indicating whether the values are equal.

Not finding the help you need?
Contact Support