DateFormat.getDateTimeInstance

DateFormat.getDateTimeInstance

Class Overview | Class Members | This Package | All Packages

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



Syntax 2
public static final DateFormat getDateTimeInstance( int dateStyle, int timeStyle )
Parameters
dateStyle
the given date formatting style. For example, SHORT for "M/d/yy" in the US locale.
timeStyle
the given time formatting style. For example, SHORT for "h:mm a" in the US locale.
Returns
a date/time formatter.
Description
Gets the date/time formatter with the given date and time formatting styles for the default locale.



Syntax 3
public static final DateFormat getDateTimeInstance( int dateStyle, int timeStyle, Locale aLocale )
Parameters
dateStyle
the given date formatting style.
timeStyle
the given time formatting style.
inLocale
the given locale.
Returns
a date/time formatter.
Description
Gets the date/time formatter with the given formatting styles for the given locale.