This method of the DateDataFormat class sets the format type.
public void setFormat(int value);
value | One of the constants defined by the DateFormat class. The default value of the format property is DateFormat.SHORT. |
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