Skip to main content

DateEdit.DateTime Property

Gets or sets the editor's date/time value. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public DateTime DateTime { get; set; }

#Property Value

Type Description
DateTime

A DateTime object that specifies the editor's value.

#Remarks

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.

#Examples

The following example shows how to set the date editor's current, maximum and minimum values.

<dxe:DateEdit DateTime="11/12/2009" MaxValue="12/31/2010" MinValue="01/01/2008"/>
See Also