question: public static boolean isToday ( Calendar _calendar ) { Calendar now = Calendar . getInstance ( ) ; if ( now . get ( Calendar . DAY_OF_MONTH ) == _calendar . get ( Calendar . DAY_OF_MONTH ) ) { if ( now . get ( Calendar . MONTH ) == _calendar . get ( Calendar . MONTH ) ) { if ( now . get ( Calendar . YEAR ) == _calendar . get ( Calendar . YEAR ) ) { return true ; } } } return false ; }
target:  Allows to know if a given calendar instance is set today