Package org.vaadin.miki.shared.dates
Class DatePatterns
- java.lang.Object
-
- org.vaadin.miki.shared.dates.DatePatterns
-
public final class DatePatterns extends Object
Container class with some commonDatePatterns.- Since:
- 2020-04-24
- Author:
- miki
-
-
Field Summary
Fields Modifier and Type Field Description static DatePatternD_M_YY_DOTTEDUses day, month and short year with century boundary year 40 (years less than 40 are from 21st century), separated by..static DatePatternD_MMMM_YYYYUses day, four digit year and month name (obtained from locale).static DatePatternDD_MM_YY_OR_YYYY_DOTTEDUses zero-prefixed day and month, optionally full year, separated by..static DatePatternDD_MM_YYYY_DOTTEDUses zero-prefixed day and month, full year, separated by..static DatePatternDDMMYYUses zero-prefixed day and month with short year (century boundary year 40, years less than 40 in 21st century), and no separator.static DatePatternM_D_YYYY_SLASHUses month, day and full year, separated by/.static DatePatternYYYY_MM_DDDefault pattern.static DatePatternYYYYMMDDUses full year, zero-prefixed month and day, and no separator.
-
-
-
Field Detail
-
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).
-
-