Enum Class DateFormat
- All Implemented Interfaces:
Serializable
,Comparable<DateFormat>
,Constable
Available date formats for date parser. To activate parsing of dates with month names in
English, use formats which contain
MONTH
, e.g. DATE_FORMAT_DDMONTHYYYY
.
Month names in uppercase and short month names are supported (for example March and Mar).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormat
Returns the enum constant of this class with the specified name.static DateFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATE_FORMAT_DDMMYYYY
-
DATE_FORMAT_DDMMYY
-
DATE_FORMAT_MMDDYYYY
-
DATE_FORMAT_MMDDYY
-
DATE_FORMAT_YYYYMMDD
-
DATE_FORMAT_YYMMDD
-
DATE_FORMAT_DDMONTHYYYY
-
DATE_FORMAT_DDMONTHYY
-
DATE_FORMAT_MONTHDDYYYY
-
DATE_FORMAT_MONTHDDYY
-
DATE_FORMAT_YYYYMONTHDD
-
DATE_FORMAT_YYMONTHDD
-
DATE_FORMAT_MMYYYY
-
DATE_FORMAT_MMYY
-
DATE_FORMAT_YYYY
-
DATE_FORMAT_YY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-