citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java
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;
		}
	}
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;
		}
	}
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 ; } }
Strip dates after current date.

@param toDate
the to date
@return the date
Strip dates after current date .