Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListView
    • Notification
    • PDF Processing
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog

isEqual

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

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.

In this article

Not finding the help you need?