Check if two dates fall on the exact same day

Write a function that takes two date instances as argument. It should return true if they fall on the exact same day. It should return false otherwise.
function
myFunction
(
a, b
)
{

return
}
Test Cases:
myFunction(new Date('2000/01/01'), new Date('2000/01/01'))
Expected
true
myFunction(new Date('2000/01/01'), new Date('2000/01/02'))
Expected
false
myFunction(new Date('2001/01/01'), new Date('2000/01/01'))
Expected
false
myFunction(new Date('2000/11/01'), new Date('2000/01/01'))
Expected
false