System.Windows.Forms.DateTimePickerFormat Enumeration

Specifies the date and time format the System.Windows.Forms.DateTimePicker control displays.

Syntax

public enum DateTimePickerFormat

Remarks

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.

Members

Member NameDescription
Custom

The System.Windows.Forms.DateTimePicker control displays the date/time value in a custom format. For more information, see DateTimePicker.CustomFormat.

Long

The System.Windows.Forms.DateTimePicker control displays the date/time value in the long date format set by the user's operating system.

Short

The System.Windows.Forms.DateTimePicker control displays the date/time value in the short date format set by the user's operating system.

Time

The System.Windows.Forms.DateTimePicker control displays the date/time value in the time format set by the user's operating system.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0