public void setFormatForDatesCommonEra ( DateTimeFormatter formatForDatesCommonEra ) { this . formatForDatesCommonEraStrict = formatForDatesCommonEra . withResolverStyle ( ResolverStyle . STRICT ) ; if ( parentDatePicker != null ) { parentDatePicker . setTextFieldToValidStateIfNeeded ( ) ; } // Changing the format for AD dates can change the default minimum width of the text field. // So if needed, set the appropriate minimum width. if ( parentDatePicker != null ) { parentDatePicker . zSetAppropriateTextFieldMinimumWidth ( ) ; } }
setFormatForDatesCommonEra This sets the format that is used to display or parse CE dates in the date picker from a DateTimeFormatter instance . The default value for the date format is generated using the locale of the settings instance .