DateTimePicker Class

Displays a calendar control allowing users to conveniently select a date and/or time.

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property CustomFormat string Gets or sets the custom date/time format string. See Custom Date and Time Format Strings.
Public property Format enum Gets or sets the format of the date and time displayed in the control. See DateTimePickerFormat for a list of possible values.
Public property MaxDate object Gets or sets the maximum date and time that can be selected in the control.
Public property MinDate object Gets or sets the minimum date and time that can be selected in the control.
Public property ShowUpDown bool True indicates whether a spin button control (also known as an up-down control) is used to adjust the date/time value.
Public property Value object Gets or sets the date/time value assigned to the control.
Methods
  Name Description
Public property Create() Initializes a new instance of the class.
Public property Create(width, height) Initializes a new instance of the class. Parameters include the width and height of the control.  
Events
  Name Description
Public event

ValueChanged

Occurs when the Value changes.