protected DateFormat . Field patternCharToDateFormatField ( char ch ) { int patternCharIndex = getIndexFromChar ( ch ) ; if ( patternCharIndex != - 1 ) { return PATTERN_INDEX_TO_DATE_FORMAT_ATTRIBUTE [ patternCharIndex ] ; } return null ; }
Returns a DateFormat . Field constant associated with the specified format pattern character .