code: private static final Date stripDatesAfterCurrentDate(final Date toDate) {
  		final DateTime currentTime = new DateTime();
  
  		if (currentTime.isBefore(toDate.getTime())) {
  			return currentTime.plusDays(1).toDate();
  		} else {
  			return toDate;
  		}
  	}
docs: Strip dates after current date.
  
  @param toDate
  the to date
  @return the date