Java DateTimeFormatter getGermanFormatter()

Here you can find the source of getGermanFormatter()

Description

get German Formatter

License

Open Source License

Declaration

public static DateTimeFormatter getGermanFormatter() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;

import java.util.Locale;

public class Main {
    private static final DateTimeFormatter germanFormatter = DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)
            .withLocale(Locale.GERMAN);

    public static DateTimeFormatter getGermanFormatter() {
        return germanFormatter;
    }//from   w  ww  .  j av a 2s .c om
}

Related

  1. getDateTimeFormatter()
  2. getFormatDate(String format)
  3. getFormattedDate()
  4. getFormattedDateString()
  5. getFullFormatter()
  6. getIndexGroupingPeriod_slow(String date_format)
  7. getLocalizedDateFormat( final Locale LOCALE)
  8. getParsedTimeOrNull(String timeText, DateTimeFormatter formatForDisplayTime, DateTimeFormatter formatForMenuTimes, ArrayList formatsForParsing, Locale timePickerLocale)
  9. getPreferredDateFormat()