Compares the date, month, and year values of two Date objects to check if they describe the same day.
use areDatesEqual() instead.
areDatesEqual()
Compares the date, month, and year values of two Date objects to check if they describe the same day.