code: protected void validateDate(String field, String min, String max, String errorKey, String errorMessage) {
  		// validateDate(field, Date.valueOf(min), Date.valueOf(max), errorKey, errorMessage);  为了兼容 64位 JDK
  		try {
  			SimpleDateFormat sdf = new SimpleDateFormat(getDatePattern());
  			validateDate(field, sdf.parse(min.trim()), sdf.parse(max.trim()), errorKey, errorMessage);
  		} catch (Exception e) {
  			addError(errorKey, errorMessage);
  		}
  	}
docs: Validate date. Date formate: yyyy-MM-dd