Checks if two Date objects are the same.
Date
The first value to compare.
The reference Date. Must be a valid Date (invalid Dates are rejected by isDate).
true if the dates are the same, false otherwise.
true
false
if ref is not a valid Date.
ref
isEqualDate(new Date(2020, 0, 1), new Date(2020, 0, 1)) => trueisEqualDate(new Date(2020, 0, 1), new Date(2020, 0, 2)) => false Copy
isEqualDate(new Date(2020, 0, 1), new Date(2020, 0, 1)) => trueisEqualDate(new Date(2020, 0, 1), new Date(2020, 0, 2)) => false
Checks if two
Dateobjects are the same.