Class DateFormats


  • public final class DateFormats
    extends Object
    A registry for date format patterns that changes some rather unsuitable default patterns provided by DateFormat.getDateInstance(int, Locale) such as the German "dd.MM.yyyy" instead of "dd.MM.yy".

    The date pattern for a given locale is determined using the following order:

    • Registered patterns for the locale
    • Registered patterns for the language
    • The short date pattern obtained from the JDK
    • The ISO date pattern