Microsoft SDK for Java

setFormat

This method of the DateDataFormat class sets the format type.

Syntax

public void setFormat(int value);

Parameters

value One of the constants defined by the DateFormat class. The default value of the format property is DateFormat.SHORT.

Remarks

To use a custom format string, set the format property to DateFormat.CUSTOM and set the customFormat property to the format string. Note that if the format property is set to DateFormat.SHORT, DateFormat.LONG, or DateFormat.TIME, any custom format string is ignored.

See Also   getFormat

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