Getting Started with WinForms DateTimePicker
This article shows how you can start using RadDateTimePicker.
Adding Telerik Assemblies Using NuGet
To use RadDateTimePicker
when working with NuGet packages, install the Telerik.UI.for.WinForms.AllControls
package. The package target framework version may vary.
Read more about NuGet installation in the Install using NuGet Packages article.
With the 2025 Q1 release, the Telerik UI for WinForms has a new licensing mechanism. You can learn more about it here.
Adding Assembly References Manually
When dragging and dropping a control from the Visual Studio (VS) Toolbox onto the Form Designer, VS automatically adds the necessary assemblies. However, if you're adding the control programmatically, you'll need to manually reference the following assemblies:
- Telerik.Licensing.Runtime
- Telerik.WinControls
- Telerik.WinControls.UI
- TelerikCommon
The Telerik UI for WinForms assemblies can be install by using one of the available installation approaches.
Defining the RadDateTimePicker
The following tutorial demonstrates basic usage of RadDateTimePicker, formatting and applying themes.
-
Drop RadDateTimePicker on the form.
-
In the Properties window use the drop down calendar to set the MinDate property to the first day of the current month.
-
Set the MaxDate property to be the last day of the current month.
-
Set the Format property to Short.
-
Drag Office2010BlackTheme on the form
-
Set the ThemeName property to Office2010Black.
Press F5 to run the application. You will only be able to pick dates that are within the current month, the drop down calendar will display in the Office2010BlackTheme theme and the date will display in short format.
Figure 1: RadDateTimePicker with the Office2010Black theme.
See Also
- Design Time
- Free Form Date Time Parsing
- MaskDateTimeProvider
- Properties
- Structure
- Specify the Minutes/Hours Step in DateTimePicker's Popup
Telerik UI for WinForms Learning Resources
- Telerik UI for WinForms DateTimePicker Component
- Getting Started with Telerik UI for WinForms Components
- Telerik UI for WinForms Setup
- Telerik UI for WinForms Application Modernization
- Telerik UI for WinForms Visual Studio Templates
- Deploy Telerik UI for WinForms Applications
- Telerik UI for WinForms Virtual Classroom(Training Courses for Registered Users)
- Telerik UI for WinForms License Agreement)