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 .