public static boolean isSameDay(Calendar dayOne, Calendar dayTwo) {
        return dayOne.get(Calendar.YEAR) == dayTwo.get(Calendar.YEAR) && dayOne.get(Calendar.DAY_OF_YEAR) == dayTwo.get(Calendar.DAY_OF_YEAR);
    }
Checks if two times are on the same day.
@param dayOne The first day.
@param dayTwo The second day.
@return Whether the times are on the same day.
library/src/main/java/com/alamkanak/weekview/WeekViewUtil.java