public class DateFormatElement extends Object
Learn more
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()
public final String getSingleFormat()
public String toString()
DateFormatElement
.public static DateFormatElement getDayOfMonth()
public static DateFormatElement getDayOfMonthTwoDigits()
public static DateFormatElement getMonth()
public static DateFormatElement getMonthTwoDigits()
public static DateFormatElement getMonthAbbreviatedName()
public static DateFormatElement getMonthFullName()
public static DateFormatElement getYear()
public static DateFormatElement getYearTwoDigits()
public static DateFormatElement getYearFourDigits()
public static DateFormatElement getDateSeparator()