DateFormat.getDateInstance

DateFormat.getDateInstance

Class Overview | Class Members | This Package | All Packages

Syntax 1
public static final DateFormat getDateInstance()
Returns
a date formatter.
Description
Gets the date formatter with the default formatting style for the default locale.



Syntax 2
public static final DateFormat getDateInstance( int style )
Parameters
style
the given formatting style. For example, SHORT for "M/d/yy" in the US locale.
Returns
a date formatter.
Description
Gets the date formatter with the given formatting style for the default locale.



Syntax 3
public static final DateFormat getDateInstance( int style, Locale aLocale )
Parameters
style
the given formatting style. For example, SHORT for "M/d/yy" in the US locale.
inLocale
the given locale.
Returns
a date formatter.
Description
Gets the date formatter with the given formatting style for the given locale.