DxDateEdit<T>.Date Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

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.

NOTE

Online Demo: Date Edit

See Also