Hello,
I have an issue with daterangepicker. When I try to change date manually directly in the control, it changes format from yyyy-MM-dd to yyyy-dd-MM, but then when I open calendar, it shows selection as if it was yyyy-MM-dd.
Initially it looks like this (pre-populated from the code):
So it means 9th till 10th of August.
I try to change 08-09 to 08-01 (to make it 1st of August):
Once I remove focus from the control, it starts to look like this (days and months swapped):
When I open calendar, it looks like this:
This is Blazor Server app with .net core 5.0
My code:
View:
<SfDateRangePicker @bind-StartDate="@ordersStartDate" @bind-EndDate="@ordersEndDate" Format="yyyy-MM-dd" Placeholder="Choose order date range"></SfDateRangePicker>
Code section:
DateTime ordersStartDate = DateTime.Now.Date.AddDays(-1);
DateTime ordersEndDate = DateTime.Now.Date;Thank you in advance.
|
<SfDateRangePicker TValue="DateTime" @bind-StartDate="@ordersStartDate" @bind-EndDate="@ordersEndDate" Format="yyyy-MM-dd" Placeholder="Choose order date range"></SfDateRangePicker>
|
Thank you, updating to the latest version solved the problem.