public boolean isSameDay ( Calendar calendar ) { Calendar c1 = asCalendar ( ) ; return ( c1 . get ( Calendar . ERA ) == calendar . get ( Calendar . ERA ) && c1 . get ( Calendar . YEAR ) == calendar . get ( Calendar . YEAR ) && c1 . get ( Calendar . DAY_OF_YEAR ) == calendar . get ( Calendar . DAY_OF_YEAR ) ) ; }
Checks if two calendar objects are on the same day ignoring time .