Package | Description |
---|---|
java.text |
Modifier and Type | Class and Description |
---|---|
class |
SimpleDateFormat
SimpleDateFormat is a concrete class for formatting and parsing dates in a locale-sensitive manner. |
Modifier and Type | Method and Description |
---|---|
static DateFormat |
DateFormat.getDateInstance()
Gets the date formatter with the default formatting style.
|
static DateFormat |
DateFormat.getDateInstance(int style)
Gets the date formatter with the given formatting style.
|
static DateFormat |
DateFormat.getDateTimeInstance()
Gets the date/time formatter with the default formatting style.
|
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle)
Gets the date/time formatter with the given date and time formatting styles.
|
static DateFormat |
DateFormat.getInstance()
Get a default date/time formatter that uses the SHORT style for both the date and the time.
|
static DateFormat |
DateFormat.getTimeInstance()
Gets the time formatter with the default formatting style.
|
static DateFormat |
DateFormat.getTimeInstance(int style)
Gets the time formatter with the given formatting style.
|