Skip to main content
A newer version of this page is available. .

DxDateEdit<T>.Date Property

Specifies the date that is selected in the Date Edit component.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public T Date { get; set; }

Property Value

Type Description
T

A value that represents the selected date.

Remarks

Use the Date property to specify the Date Edit’s selected date…

<DxDateEdit Date="new DateTime(2019, 08, 13)"></DxDateEdit>

… or bind the property to a variable that stores the date.

<DxDateEdit @bind-Date="@DateTimeValue"></DxDateEdit>

@code {
    DateTime DateTimeValue { get; set; } = DateTime.Today;
}

Note

To handle the date change, use the DateChanged event.

Run Demo: Date Edit

See Also