code: public boolean checkDate(Date date) {
  		Calendar calendar = Calendar.getInstance();
  		calendar.setTime(date);
  		calendar.set(Calendar.HOUR_OF_DAY, 0);
  		calendar.set(Calendar.MINUTE, 0);
  		calendar.set(Calendar.SECOND, 0);
  		calendar.set(Calendar.MILLISECOND, 0);
  
  		Calendar minCal = Calendar.getInstance();
  		minCal.setTime(minSelectableDate);
  		minCal.set(Calendar.HOUR_OF_DAY, 0);
  		minCal.set(Calendar.MINUTE, 0);
  		minCal.set(Calendar.SECOND, 0);
  		minCal.set(Calendar.MILLISECOND, 0);
  
  		Calendar maxCal = Calendar.getInstance();
  		maxCal.setTime(maxSelectableDate);
  		maxCal.set(Calendar.HOUR_OF_DAY, 0);
  		maxCal.set(Calendar.MINUTE, 0);
  		maxCal.set(Calendar.SECOND, 0);
  		maxCal.set(Calendar.MILLISECOND, 0);
  
  		return !(calendar.before(minCal) || calendar.after(maxCal));
  	}
docs: Checks a given date if it is in the formally specified date range.
  
  @param date
  the date to check
  @return true, if the date is within minSelectableDate and
  maxSelectableDate