Package | Description |
---|---|
java.text |
Modifier and Type | Class and Description |
---|---|
class |
SimpleDateFormat |
Modifier and Type | Method and Description |
---|---|
static DateFormat |
DateFormat.getDateInstance()
Returns a
DateFormat instance for formatting and parsing dates in
the DEFAULT style for the default locale. |
static DateFormat |
DateFormat.getDateInstance(int style)
Returns a
DateFormat instance for formatting and parsing dates in
the specified style for the default locale. |
static DateFormat |
DateFormat.getDateInstance(int style,
Locale locale)
Returns a
DateFormat instance for formatting and parsing dates in
the specified style for the specified locale. |
static DateFormat |
DateFormat.getDateTimeInstance()
Returns a
DateFormat instance for formatting and parsing dates
and time values in the DEFAULT style for the default locale. |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle)
Returns a
DateFormat instance for formatting and parsing of both
dates and time values in the manner appropriate for the default locale. |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
Locale locale)
Returns a
DateFormat instance for formatting and parsing dates
and time values in the specified styles for the specified locale. |
static DateFormat |
DateFormat.getInstance()
Returns a
DateFormat instance for formatting and parsing dates
and times in the SHORT style for the default locale. |
static DateFormat |
DateFormat.getTimeInstance()
Returns a
DateFormat instance for formatting and parsing time
values in the DEFAULT style for the default locale. |
static DateFormat |
DateFormat.getTimeInstance(int style)
Returns a
DateFormat instance for formatting and parsing time
values in the specified style for the default locale. |
static DateFormat |
DateFormat.getTimeInstance(int style,
Locale loc)
Returns a
DateFormat instance for formatting and parsing time
values in the specified style for the specified locale. |