DateFormat Members

Class Overview | This Package | All Packages

Fields

Name Description
AM_PM_FIELD Useful constant for AM_PM field alignment.
calendar The calendar that DateFormat uses to produce the time field values needed to implement date/time formatting.
DATE_FIELD Useful constant for DATE field alignment.
DAY_OF_WEEK_FIELD Useful constant for DAY_OF_WEEK field alignment.
DAY_OF_WEEK_IN_MONTH_FIELD Useful constant for DAY_OF_WEEK_IN_MONTH field alignment.
DAY_OF_YEAR_FIELD Useful constant for DAY_OF_YEAR field alignment.
DEFAULT Constant for default style pattern.
ERA_FIELD Useful constant for ERA field alignment.
FULL Constant for full style pattern.
HOUR0_FIELD Useful constant for zero-based HOUR field alignment.
HOUR1_FIELD Useful constant for one-based HOUR field alignment.
HOUR_OF_DAY0_FIELD Useful constant for zero-based HOUR_OF_DAY field alignment.
HOUR_OF_DAY1_FIELD Useful constant for one-based HOUR_OF_DAY field alignment.
LONG Constant for long style pattern.
MEDIUM Constant for medium style pattern.
MILLISECOND_FIELD Useful constant for MILLISECOND field alignment.
MINUTE_FIELD Useful constant for MINUTE field alignment.
MONTH_FIELD Useful constant for MONTH field alignment.
numberFormat The number formatter that DateFormat uses to format numbers in dates and times.
SECOND_FIELD Useful constant for SECOND field alignment.
SHORT Constant for short style pattern.
TIMEZONE_FIELD Useful constant for TIMEZONE field alignment.
WEEK_OF_MONTH_FIELD Useful constant for WEEK_OF_MONTH field alignment.
WEEK_OF_YEAR_FIELD Useful constant for WEEK_OF_YEAR field alignment.
YEAR_FIELD Useful constant for YEAR field alignment.

Constructors

Name Description
DateFormat()  

Methods

Name Description
clone() Overrides Cloneable
equals(Object) Overrides equals
format(Date) Formats a Date into a date/time string.
format(Date, StringBuffer, FieldPosition) Formats a Date into a date/time string.
format(Object, StringBuffer, FieldPosition) Overrides Format.
getAvailableLocales() Gets the set of locales for which DateFormats are installed.
getCalendar() Gets the calendar associated with this date/time formatter.
getDateInstance() Gets the date formatter with the default formatting style for the default locale.
getDateInstance(int) Gets the date formatter with the given formatting style for the default locale.
getDateInstance(int, Locale) Gets the date formatter with the given formatting style for the given locale.
getDateTimeInstance() Gets the date/time formatter with the default formatting style for the default locale.
getDateTimeInstance(int, int) Gets the date/time formatter with the given date and time formatting styles for the default locale.
getDateTimeInstance(int, int, Locale) Gets the date/time formatter with the given formatting styles for the given locale.
getInstance() Get a default date/time formatter that uses the SHORT style for both the date and the time.
getNumberFormat() Gets the number formatter which this date/time formatter uses to format and parse a time.
getTimeInstance() Gets the time formatter with the default formatting style for the default locale.
getTimeInstance(int) Gets the time formatter with the given formatting style for the default locale.
getTimeInstance(int, Locale) Gets the time formatter with the given formatting style for the given locale.
getTimeZone() Gets the time zone.
hashCode() Overrides hashCode
isLenient() Tell whether date/time parsing is to be lenient.
parse(String) Parse a date/time string.
parse(String, ParsePosition) Parse a date/time string according to the given parse position.
parseObject(String, ParsePosition) Parse a date/time string into an Object.
setCalendar(Calendar) Set the calendar to be used by this date format.
setLenient(boolean) Specify whether or not date/time parsing is to be lenient.
setNumberFormat(NumberFormat) Allows you to set the number formatter.
setTimeZone(TimeZone) Sets the time zone for the calendar of this DateFormat object.