Checks if two dates fall on the same calendar day (ignores time).
The first date.
The second date.
true if both dates fall on the same day.
true
isSameDay(new Date('2025-01-01'), new Date('2025-01-01T23:59:59')); // true Copy
isSameDay(new Date('2025-01-01'), new Date('2025-01-01T23:59:59')); // true
Checks if two dates fall on the same calendar day (ignores time).