DateTimePickerFormat Enumeration
Specifies the date and time format the DateTimePicker control displays.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Member name | Description | |
|---|---|---|
| Custom | The DateTimePicker control displays the date/time value in a custom format. For more information, see CustomFormat. | |
| Long | The DateTimePicker control displays the date/time value in the long date format set by the user's operating system. | |
| Short | The DateTimePicker control displays the date/time value in the short date format set by the user's operating system. | |
| Time | The DateTimePicker control displays the date/time value in the time format set by the user's operating system. |
This enumeration is used by members such as DateTimePicker.Format.
Note |
|---|
The actual date/time formats are determined by the date, time, and regional settings set in the user's operating system. |
The following code example demonstrates initializing a DateTimePicker object by setting the Format to a DateTimePickerFormat value. To run this example paste the following code in a form and call InitializeDateTimePicker from the form's constructor or Load event-handling method.
Available since 1.1
