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.
JavaScript
Console