JSchallenger

Check if two dates fall on the exact same day

Viewed: 224
Attempted: 103
Solved: 34
// 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() {

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