Overview | Methods | This Package | All Packages
Sets a value indicating the whether the control displays date and time information in long date format (for example, "Wednesday, April 7, 1999"), short date format (for example, "4/7/99"), time format (for example, "5:31:34 PM"), or custom format.
Syntax
public final void setFormat( int format )
Parameters
format
An integer that specifies the date and time display format. Possible values are constants defined in the DateTimePickerFormat class. The default value is DateTimePickerFormat.LONG.
Exceptions
WFCInvalidEnumException thrown if the specified value is not a valid DateTimePickerFormat constant.
Remarks
If you use this method to specify that the control should display output in a custom format, use the setCustomFormat method to specify which custom format to use.
See Also getFormat