public enum DateFormat extends Enum<DateFormat>
| Enum Constant and Description |
|---|
D_MMM_YYYY |
D_MMMM |
DWWW_DD_MMM_YYYY |
DWWW_MM_DD_YYYY |
DWWWW_MMMM_D_YYYY |
LOCALE_BASED |
MMM_D_YYYY |
MMMM_D |
MMMM_D_YYYY |
YYYY_MM_DD_DOT |
YYYY_MM_DD_HYPHEN |
| Modifier and Type | Field and Description |
|---|---|
static DateFormat |
DEFAULT
The default setting when the
Format for DateFormat is null; |
| Modifier and Type | Method and Description |
|---|---|
static DateFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormat LOCALE_BASED
public static final DateFormat MMMM_D_YYYY
public static final DateFormat MMM_D_YYYY
public static final DateFormat D_MMM_YYYY
public static final DateFormat YYYY_MM_DD_HYPHEN
public static final DateFormat YYYY_MM_DD_DOT
public static final DateFormat DWWWW_MMMM_D_YYYY
public static final DateFormat DWWW_DD_MMM_YYYY
public static final DateFormat DWWW_MM_DD_YYYY
public static final DateFormat MMMM_D
public static final DateFormat D_MMMM
public static final DateFormat DEFAULT
Format for DateFormat is null;public static DateFormat[] values()
for (DateFormat c : DateFormat.values()) System.out.println(c);
public static DateFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2019 Smartsheet. All rights reserved.