DateFormatElement
Leave feedback
On this page
Inheritance: java.lang.Object
public abstract class DateFormatElement
Represents a date format element.
Learn more
| Constructor | Description |
|---|---|
| DateFormatElement() |
| 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. |
public DateFormatElement()
public abstract String getFormat()
Gets the format string.
Returns: java.lang.String - The format string.
public abstract String getSingleFormat()
Gets the single format string.
Returns: java.lang.String - The single format string.
public abstract String toString()
Returns a String that represents the current DateFormatElement .
Returns: java.lang.String - A String that represents the current DateFormatElement .
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.
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.
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.
public static DateFormatElement getMonthTwoDigits()
Gets the month element, represented by two digits.
Returns: DateFormatElement - The month element, represented by two digits.
public static DateFormatElement getMonthAbbreviatedName()
Gets the month element, represented by abbreviated name.
Returns: DateFormatElement - The month element, represented by abbreviated name.
public static DateFormatElement getMonthFullName()
Gets the month element, represented by full name.
Returns: DateFormatElement - The month element, represented by full name.
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.
public static DateFormatElement getYearTwoDigits()
Gets the year element, represented by two digits.
Returns: DateFormatElement - The year element, represented by two digits.
public static DateFormatElement getYearFourDigits()
Gets the year element, represented by four digits.
Returns: DateFormatElement - The year element, represented by four digits.
public static DateFormatElement getDateSeparator()
Gets the date separator element.
Returns: DateFormatElement - The date separator element.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.