aspnet-devexpress-dot-web-dot-aspxdateedit.md
Gets or sets the currently selected date.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(typeof(DateTime), "")]
public DateTime Date { get; set; }
<DefaultValue(GetType(Date), "")>
Public Property [Date] As Date
| Type | Default | Description |
|---|---|---|
| DateTime | String.Empty |
A DateTime value, representing the currently selected date.
|
Use the Date property to specify the editor’s selected date. Changing this property affects the ASPxDateEdit.Value property of the date editor.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Date 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.
date.ID = "date";
date.Date = Convert.ToDateTime(dataValue);
container.Controls.Add(date);
[date].ID = "date"
[date].Date = Convert.ToDateTime(dataValue)
container.Controls.Add([date])
See Also