public enum DateStyle extends Enum<DateStyle>
| Enum Constant and Description |
|---|
DATE
Date sytle.
|
DATETIME
Date time sytle. allways with milliseconds.
|
TIME
time sytle. allways with milliseconds.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatPattern()
Gets the default date format pattern.
|
String |
getFormatPatternRfc3339()
Gets the pattern for formatting a RFC-3339 date string.
|
String |
getFormatPatternRfc3339Local()
Gets the pattern for formatting a RFC-3339 date string in local manner.
|
String |
getHtmlInputType()
Gets the HTML5 inputfield type.
|
String |
getParsePattern()
Gets the default date parse pattern.
|
String |
getParsePatternRfc3339()
Gets the pattern for parsing a RFC-3339 date string.
|
String |
getParsePatternRfc3339Local()
Gets the pattern for parsing a RFC-3339 date string in local manner.
|
static DateStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateStyle DATE
public static final DateStyle TIME
public static final DateStyle DATETIME
public static DateStyle[] values()
for (DateStyle c : DateStyle.values()) System.out.println(c);
public static DateStyle 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 nullpublic String getFormatPattern()
public String getParsePattern()
public String getFormatPatternRfc3339()
public String getFormatPatternRfc3339Local()
public String getParsePatternRfc3339()
public String getParsePatternRfc3339Local()
public String getHtmlInputType()
Copyright © 2011–2015 SWM. All rights reserved.