public static String validateDate(String date) {
		if (date.toLowerCase().equals(TODAY_CHECK)) {
			DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
			Date currDate = new Date();
			return dateFormat.format(currDate);
		} else if (date.toLowerCase().equals(TOMORROW_CHECK)) {
			DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
			long currTime = new Date().getTime();
			Date currDate = new Date(currTime + (24 * 3600 * 1000));
			return dateFormat.format(currDate);
		} else if ((date.equals(FLOATING_CHECK))
				|| (date.equals(ARCHIVES_CHECK))
				|| (date.equals(OVERDUE_CHECK))) {
			return date;
		} else {
			new IsValidDate(date);
			if (IsValidDate.testValidDate()) {
				return date;
			}
		}
		try {
			int box = Integer.valueOf(date);
			if (box >= 1 && box <= 7) {
				DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
				Date currDate = new Date();
				return DateModifier.getParticularDate(
						dateFormat.format(currDate), box - 1);
			}
		} catch (Exception e) {
			// do nothing
		}
		WarningPopUp.infoBox(ERROR_DATE, ERROR_HEADING);
		return "";
	}