public enum DateTimeStyle extends Enum<DateTimeStyle>
| Enum Constant and Description | 
|---|
| COMPLETEDisplay the date and time. | 
| DATEDisplay the date (day, month, and year). | 
| DATE_PICKERDisplays the date in date picker format. | 
| DATE_TIME_PICKERDisplays the date and time in date picker format. | 
| ISO_8601_DATEThe ISO8601 Date format. | 
| ISO_8601_DATE_TIMEThe ISO8601 Date Time format. | 
| RELATIVEDisplay the date and time relative to now (e.g. | 
| RELATIVE_ALWAYS_WITH_TIMEDisplays all dates with time. | 
| RELATIVE_WITH_TIME_ONLYDisplays the time only for relative dates. | 
| RELATIVE_WITHOUT_TIMEDisplays dates and never the time. | 
| RSS_RFC822_DATE_TIMEThe RFC822 Date format.This format includes date,time and time zone information | 
| TIMEDisplay the time only. | 
| Modifier and Type | Method and Description | 
|---|---|
| static DateTimeStyle | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static DateTimeStyle[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final DateTimeStyle TIME
public static final DateTimeStyle DATE
You should use system time zone when you use this type of formatter.
public static final DateTimeStyle COMPLETE
public static final DateTimeStyle RELATIVE
public static final DateTimeStyle DATE_TIME_PICKER
public static final DateTimeStyle DATE_PICKER
public static final DateTimeStyle RELATIVE_WITH_TIME_ONLY
public static final DateTimeStyle RELATIVE_ALWAYS_WITH_TIME
public static final DateTimeStyle RELATIVE_WITHOUT_TIME
public static final DateTimeStyle ISO_8601_DATE_TIME
public static final DateTimeStyle ISO_8601_DATE
public static final DateTimeStyle RSS_RFC822_DATE_TIME
public static DateTimeStyle[] values()
for (DateTimeStyle c : DateTimeStyle.values()) System.out.println(c);
public static DateTimeStyle 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 © 2002-2017 Atlassian. All Rights Reserved.