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.
public final void setFormat( int format )
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.
WFCInvalidEnumException thrown if the specified value is not a valid DateTimePickerFormat constant.
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