Checks if two Date objects are the same.
Date
The first value to compare.
The reference Date.
true if the dates are the same, false otherwise.
true
false
if ref is not a Date.
ref
Checks if two
Dateobjects are the same.