public abstract class DateFormatElement extends Object
Learn more
| Constructor and Description |
|---|
DateFormatElement() |
| 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.
|
abstract 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.
|
abstract 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.
|
abstract String |
toString()
Returns a String that represents the current
DateFormatElement. |
public static DateFormatElement getDateSeparator()
public static DateFormatElement getDayOfMonth()
public static DateFormatElement getDayOfMonthTwoDigits()
public abstract String getFormat()
public static DateFormatElement getMonth()
public static DateFormatElement getMonthAbbreviatedName()
public static DateFormatElement getMonthFullName()
public static DateFormatElement getMonthTwoDigits()
public abstract String getSingleFormat()
public static DateFormatElement getYear()
public static DateFormatElement getYearFourDigits()
public static DateFormatElement getYearTwoDigits()
Copyright © 2026. All rights reserved.