New to Kendo UI for Angular? Start a free 30-day trial

isEqualDate

A function that compares the date portions of 2 dates.

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

Parameters

candidate

Date

The candidate date.

expected

Date

The expected date.

Returns

boolean

  • A Boolean value whether the values are equal.

In this article

Not finding the help you need?