DateFormatElement

Inheritance: java.lang.Object

public abstract class DateFormatElement

Represents a date format element.

Learn more

Constructors

Constructor Description
DateFormatElement()

Methods

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

DateFormatElement()

public DateFormatElement()

getFormat()

public abstract String getFormat()

Gets the format string.

Returns: java.lang.String - The format string.

getSingleFormat()

public abstract String getSingleFormat()

Gets the single format string.

Returns: java.lang.String - The single format string.

toString()

public abstract String toString()

Returns a String that represents the current DateFormatElement .

Returns: java.lang.String - A String that represents the current DateFormatElement .

getDayOfMonth()

public static DateFormatElement getDayOfMonth()

Gets the day of month element, represented by one or two digits.

Returns: DateFormatElement - The day of month element, represented by one or two digits.

getDayOfMonthTwoDigits()

public static DateFormatElement getDayOfMonthTwoDigits()

Gets the day of month element, represented by two digits.

Returns: DateFormatElement - The day of month element, represented by two digits.

getMonth()

public static DateFormatElement getMonth()

Gets the month element, represented by one or two digits.

Returns: DateFormatElement - The month element, represented by one or two digits.

getMonthTwoDigits()

public static DateFormatElement getMonthTwoDigits()

Gets the month element, represented by two digits.

Returns: DateFormatElement - The month element, represented by two digits.

getMonthAbbreviatedName()

public static DateFormatElement getMonthAbbreviatedName()

Gets the month element, represented by abbreviated name.

Returns: DateFormatElement - The month element, represented by abbreviated name.

getMonthFullName()

public static DateFormatElement getMonthFullName()

Gets the month element, represented by full name.

Returns: DateFormatElement - The month element, represented by full name.

getYear()

public static DateFormatElement getYear()

Gets the year element, represented by one, two, three, or four digits.

Returns: DateFormatElement - The year element, represented by one, two, three, or four digits.

getYearTwoDigits()

public static DateFormatElement getYearTwoDigits()

Gets the year element, represented by two digits.

Returns: DateFormatElement - The year element, represented by two digits.

getYearFourDigits()

public static DateFormatElement getYearFourDigits()

Gets the year element, represented by four digits.

Returns: DateFormatElement - The year element, represented by four digits.

getDateSeparator()

public static DateFormatElement getDateSeparator()

Gets the date separator element.

Returns: DateFormatElement - The date separator element.