I have 2 date objects like the following:
var d1 = new Date(2017, 01, 11, 20, 59, 59);
var d2 = new Date(2017, 01, 11, 22, 59, 59);
d1 == d2 //false
In the example above d1
is not equal to d2
However I want to check the equality based on date
, month
and year
without consideration of the time values.
Can anyone help me