Here you can find the source of getGermanFormatter()
public static DateTimeFormatter getGermanFormatter()
//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 }