DateDataFormat.setFormat

Overview | Methods | This Package | All Packages

DateDataFormat.setFormat

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