@ Nonnull public static DateTimeFormatter getWithLocale ( @ Nonnull final DateTimeFormatter aFormatter , @ Nullable final Locale aDisplayLocale ) { DateTimeFormatter ret = aFormatter ; if ( aDisplayLocale != null ) ret = ret . withLocale ( aDisplayLocale ) ; return ret ; }
Assign the passed display locale to the passed date time formatter .