question: public static boolean isBetweenInclusive ( Date selectedDate , Calendar startCal , Calendar endCal ) { Calendar selectedCal = Calendar . getInstance ( ) ; selectedCal . setTime ( selectedDate ) ; return sameDate ( selectedCal , startCal ) || selectedCal . after ( startCal ) && selectedCal . before ( endCal ) ; }
target:  Check if a Date instance is between two Calendar instances' dates (inclusively) in time.