Class DatePatterns

java.lang.Object
org.vaadin.miki.shared.dates.DatePatterns

public final class DatePatterns extends Object
Container class with some common DatePatterns.
Since:
2020-04-24
Author:
miki
  • Field Details

    • YYYY_MM_DD

      public static final DatePattern YYYY_MM_DD
      Default pattern. Uses full year, zero-prefixed month and day, separated by -.
    • DD_MM_YYYY_DOTTED

      public static final DatePattern DD_MM_YYYY_DOTTED
      Uses zero-prefixed day and month, full year, separated by ..
    • DD_MM_YY_OR_YYYY_DOTTED

      public static final DatePattern DD_MM_YY_OR_YYYY_DOTTED
      Uses zero-prefixed day and month, optionally full year, separated by .. For short years the century boundary year is 40 (years less than 40 are from 21st century).
    • D_M_YY_DOTTED

      public static final DatePattern D_M_YY_DOTTED
      Uses day, month and short year with century boundary year 40 (years less than 40 are from 21st century), separated by ..
    • M_D_YYYY_SLASH

      public static final DatePattern M_D_YYYY_SLASH
      Uses month, day and full year, separated by /.
    • YYYYMMDD

      public static final DatePattern YYYYMMDD
      Uses full year, zero-prefixed month and day, and no separator.
    • DDMMYY

      public static final DatePattern DDMMYY
      Uses zero-prefixed day and month with short year (century boundary year 40, years less than 40 in 21st century), and no separator.
    • D_MMMM_YYYY

      public static final DatePattern D_MMMM_YYYY
      Uses day, four digit year and month name (obtained from locale).