title | description | ms.date | helpviewer_keywords | ms.assetid | ||||
---|---|---|---|---|---|---|---|---|
DateTimePicker Control |
Learn to use the Windows Forms DateTimePicker control to allow the user to select a single item from a list of dates or times. |
03/30/2017 |
|
1dac1fbd-8f67-4910-9ccb-2c5462d0d855 |
The Windows Forms DateTimePicker
control allows the user to select a single item from a list of dates or times. When used to represent a date, it appears in two parts: a drop-down list with a date represented in text, and a grid that appears when you click on the down-arrow next to the list.
DateTimePicker Control Overview
Introduces the general concepts of the DateTimePicker
control, which allows users to select a single item from a list of dates or times.
How to: Display a Date in a Custom Format with the Windows Forms DateTimePicker Control
Explains how to use format strings to display dates in a preferred format.
How to: Set and Return Dates with the Windows Forms DateTimePicker Control
Provides steps to set the date in the control and to access the date the user has selected.
How to: Display Time with the DateTimePicker Control
Shows steps to for a DateTimePicker
to display times only.
xref:System.Windows.Forms.DateTimePicker
Describes this class and has links to all its members.
xref:System.Windows.Forms.MonthCalendar
Describes this class and has links to all its members.
Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.
MonthCalendar Control
Presents an intuitive graphical interface for users to view and set date information.