DxDateEdit<T>.Date Property
Specifies the date that is selected in the Date Edit component.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v21.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public T Date { get; set; }
Property Value
Type | Description |
---|---|
T | A value that defines 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
- The Date Edit supports DateTime and Nullable DateTime types.
- If the specified date is out of a date range, the Date Edit’s calendar displays the nearest available date.
To handle the date change, use the DateChanged event.
See Also