Back to Devexpress

DxDateRangePicker<T>.StartDate Property

blazor-devexpress-dot-blazor-dot-dxdaterangepicker-1-c8b4db40.md

latest1.7 KB
Original Source

DxDateRangePicker<T>.StartDate Property

Specifies the start date of the range.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public T StartDate { get; set; }

Property Value

TypeDescription
T

The start value’s type.

|

Remarks

Use StartDate and EndDate properties to specify the date range selected in the component. You can also use the @bind attribute to bind these properties to data fields. Refer to the following topic for details: Two-Way Data Binding.

razor
<DxDateRangePicker StartDate="DateTime.Today"
                   EndDate="DateTime.Today.AddDays(7)">
</DxDateRangePicker>

@* --or-- *@

<DxDateRangePicker @bind-StartDate="@DateTimeStart"
                   @bind-EndDate="@DateTimeEnd">
</DxDateRangePicker>

@code {
    DateTime? DateTimeStart { get; set; } = DateTime.Today;
    DateTime? DateTimeEnd { get; set; } = DateTime.Today.AddDays(7);
}

Run Demo

See Also

DxDateRangePicker<T> Class

DxDateRangePicker<T> Members

DevExpress.Blazor Namespace