code: private Integer parseDateComponent(final String component, final char padding) {
  		if (component != null && component.indexOf(padding) == -1) {
  			try {
  				return Integer.valueOf(component);
  			} catch (NumberFormatException e) {
  				return null;
  			}
  		}
  		return null;
  	}
docs: Parses a component of a partial date.
  
  @param component the date component.
  @param padding the padding character.
  @return the parsed value, may be null.