spring-framework / org.springframework.format.datetime.joda / JodaTimeContextHolder / getFormatter

getFormatter

static fun getFormatter(formatter: DateTimeFormatter, @Nullable locale: Locale): DateTimeFormatter

Obtain a DateTimeFormatter with user-specific settings applied to the given base Formatter.

Parameters

formatter - the base formatter that establishes default formatting rules (generally user independent)

locale - the current user locale (may be null if not known)

Return
the user-specific DateTimeFormatter