DateTimeFormatterBuilder.ofLocalizedDateTime

Returns a locale specific date-time formatter for the ISO chronology. !(p) This returns a formatter that will format or parse a date-time. The exact format pattern used varies by locale. !(p) The locale is determined from the formatter. The formatter returned directly by this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}. The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)} on the result of this method. !(p) Note that the localized pattern is looked up lazily. This {@code DateTimeFormatter} holds the style required and the locale, looking up the pattern required on demand. !(p) The returned formatter has a chronology of ISO set to ensure dates _in other calendar systems are correctly converted. It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style. The {@code FULL} and {@code LONG} styles typically require a time-zone. When formatting using these styles, a {@code ZoneId} must be available, either by using {@code ZonedDateTime} or {@link DateTimeFormatter#withZone}.

@param dateTimeStyle the formatter style to obtain, not null @return the date-time formatter, not null

  1. DateTimeFormatter ofLocalizedDateTime(FormatStyle dateTimeStyle)
    class DateTimeFormatterBuilder
    static
    ofLocalizedDateTime
  2. DateTimeFormatter ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle)

Meta