Please see my comment to the question. You need to ask questions in more accurate way.
Anyway, as JavaScript
Date
(constructor function) produces objects based on number of milliseconds, that is, on some integer object with arithmetic order, quite naturally, you can use the operators '==', '===', '!=', '!==', '>', '<', '>=' or '<='.
Please see
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date[
^].
—SA