code: public static Object getParameterValueFromStringWithPattern(String parameterClass, String value, String pattern) throws Exception {
  	  if (pattern == null) {
  		  return getParameterValueFromString(parameterClass, value);
  	  } else {
  		  if (QueryParameter.DATE_VALUE.equals(parameterClass) ||
  		      QueryParameter.TIME_VALUE.equals(parameterClass) ||
  			  QueryParameter.TIMESTAMP_VALUE.equals(parameterClass)) {
  			  
  			  SimpleDateFormat sdf = new SimpleDateFormat(pattern);
  			  return getParameterValueFromString(parameterClass, value, sdf);
  		  } else {
  			  return getParameterValueFromString(parameterClass, value);
  		  }
  	  }
    }
docs: Get parameter value from a string represenation using a pattern
  
  @param parameterClass parameter class
  @param value string value representation
  @param pattern value pattern
  @return parameter value from string representation using pattern
  @throws Exception if string value cannot be parse