Microsoft SDK for Java

DateDataFormat Class Constructors

The DateDataFormat class has the following constructors:

DateDataFormat(int format)
DateDataFormat(String customFormat)
DateDataFormat(int format, String customFormat)

DateDataFormat(int format)

Creates a DateDataFormat object.

Syntax

public DateDataFormat(int format);

Parameters

format The type of format. Specify one of the constants defined by the DateFormat class.

DateDataFormat(String customFormat)

Creates a DateDataFormat object.

Syntax

public DateDataFormat(String customFormat);

Parameters

customFormat The custom format string to be used when the format type is set to DateFormat.CUSTOM. For information about possible format strings, see setCustomFormat.

DateDataFormat(int format, String customFormat)

Creates a DateDataFormat object.

Syntax

public DateDataFormat(int format, String customFormat);

Parameters

format The type of format. Specify one of the constants defined by the DateFormat class.
customFormat The custom format string to be used when the format type is set to DateFormat.CUSTOM. For information about possible format strings, see setCustomFormat.

Remarks

If no value is passed for format, the format type is set to DateFormat.SHORT.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.