String format(Date date)
Formats a Date into a date/time string.
StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition)
Overrides Format.
Create new DateFormat instance
Calendar getCalendar()
Gets the calendar associated with this date/time formatter.
static DateFormat getDateInstance()
Gets the date formatter with the default formatting style for the default locale.
static DateFormat getDateInstance(int style)
Gets the date formatter with the given formatting style for the default locale.
static DateFormat getDateInstance(int style, Locale aLocale)
Gets the date formatter with the given formatting style for the given locale.
static DateFormat getDateTimeInstance()
Gets the date/time formatter with the default formatting style for the default locale.
static DateFormat getDateTimeInstance(int dateStyle, int timeStyle)
Gets the date/time formatter with the given date and time formatting styles for the default locale.
static DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)
Gets the date/time formatter with the given formatting styles for the given locale.
static DateFormat getInstance()
Get a default date/time formatter that uses the SHORT style for both the date and the time.
NumberFormat getNumberFormat()
Gets the number formatter which this date/time formatter uses to format and parse a time.
static DateFormat getTimeInstance()
Gets the time formatter with the default formatting style for the default locale.
static DateFormat getTimeInstance(int style)
Gets the time formatter with the given formatting style for the default locale.
static DateFormat getTimeInstance(int style, Locale aLocale)
Gets the time formatter with the given formatting style for the given locale.
TimeZone getTimeZone()
Gets the time zone.