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);
}

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 ) ; }
check if a date instance is between two calendar instances ' dates ( inclusively ) in time .
