The WPF DateTimePicker (DatePicker) control provides a simple and intuitive interface for picking DateTime. In other words, users can quickly navigate and select dates using months, years, and decades of calendar. The DateTimePicker comprises text box and a dropdown with calendar and clock to pick or edit a date with time. It supports watermark, minimum and maximum dates, date format, nullable, date validation, and much more. In addition, it supports month and year selection by disabling date selection.
The WPF DateTimePicker control supports formatting date and time with a wide range of patterns, and allows you to define custom formats.
The WPF DateTimePicker control supports display of hint information using watermark text when the selected date is null. In addition, it provides support to define null DateTime value.
The DatePicker control provides support for editing DateTime using text box. It supports both free flow editing and mask based editing.
Prevents users from selecting a date and time in a particular range by specifying minimum and maximum dates.
The WPF DateTimePicker control support customizing the appearance of editor and calendar as needed. In addition to that, DateTimePicker controls offers built-in themes like Office2016, Office2010, Metro, Blend, etc.
The WPF DateTimePicker supports globalization (internationalization and localization) to translate the names of months, days, today button text, and none button text to any supported language.
Supports right to left (RTL) direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.
Easily get started with the WPF DateTimePicker using a few simple lines of XAML and C# code example as demonstrated below. Also explore our WPF DateTimePicker Example that shows you how to render and configure the datetime picker in WPF.
<syncfusion:DateTimeEdit x:Name="dateTimeEdit" Height="25" Width="120" VerticalAlignment="Center"/>
using Syncfusion.Windows.Controls.Input;
namespace WpfApp1
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
// Creating an instance of the DateTimeEdit
DateTimeEdit dateTimeEdit = new DateTimeEdit();
// Setting height and width to DateTimeEdit
dateTimeEdit.Height = 25;
dateTimeEdit.Width = 120;
// Adding control into the main window
this.Content = dateTimeEdit;
}
}
}
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.