simplifying isSameDate