public class DateFormatElement extends Object
Modifier and Type | Method and Description |
---|---|
static DateFormatElement |
getDateSeparator()
Gets the date separator element.
|
static DateFormatElement |
getDayOfMonth()
Gets the day of month element, represented by one or two digits.
|
static DateFormatElement |
getDayOfMonthTwoDigits()
Gets the day of month element, represented by two digits.
|
String |
getFormat()
Gets the format string.
|
static DateFormatElement |
getMonth()
Gets the month element, represented by one or two digits.
|
static DateFormatElement |
getMonthAbbreviatedName()
Gets the month element, represented by abbreviated name.
|
static DateFormatElement |
getMonthFullName()
Gets the month element, represented by full name.
|
static DateFormatElement |
getMonthTwoDigits()
Gets the month element, represented by two digits.
|
String |
getSingleFormat()
Gets the single format string.
|
static DateFormatElement |
getYear()
Gets the year element, represented by one, two, three, or four digits.
|
static DateFormatElement |
getYearFourDigits()
Gets the year element, represented by four digits.
|
static DateFormatElement |
getYearTwoDigits()
Gets the year element, represented by two digits.
|
String |
toString()
Returns a String that represents the current
DateFormatElement . |
public final String getFormat()
Gets the format string.
public final String getSingleFormat()
Gets the single format string.
public String toString()
Returns a String that represents the current DateFormatElement
.
public static DateFormatElement getDayOfMonth()
Gets the day of month element, represented by one or two digits.
public static DateFormatElement getDayOfMonthTwoDigits()
Gets the day of month element, represented by two digits.
public static DateFormatElement getMonth()
Gets the month element, represented by one or two digits.
public static DateFormatElement getMonthTwoDigits()
Gets the month element, represented by two digits.
public static DateFormatElement getMonthAbbreviatedName()
Gets the month element, represented by abbreviated name.
public static DateFormatElement getMonthFullName()
Gets the month element, represented by full name.
public static DateFormatElement getYear()
Gets the year element, represented by one, two, three, or four digits.
public static DateFormatElement getYearTwoDigits()
Gets the year element, represented by two digits.
public static DateFormatElement getYearFourDigits()
Gets the year element, represented by four digits.
public static DateFormatElement getDateSeparator()
Gets the date separator element.