wpf-devexpress-dot-xpf-dot-editors-dot-dateedit.md
Gets or sets the editor’s date/time value. This is a dependency property.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public DateTime DateTime { get; set; }
Public Property DateTime As Date
| Type | Description |
|---|---|
| DateTime |
A DateTime object that specifies the editor’s value.
|
The editor’s minimum and maximum values can be specified using the DateEdit.MinValue and DateEdit.MaxValue properties, respectively.
Changing the DateTime property’s value fires the BaseEdit.EditValueChanged event.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DateTime property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
{
dateEdit1.DateTime = DateTime.Now;
dateEdit2.DateTime = DateTime.Now.AddMonths(12);
See Also