SCosmos
October 20, 2022, 10:22am
1
Hi,
I follow up the example of the DatePicker [Blazor DatePicker Component | Free UI Components by Radzen ]
As you can see, the month and year of today's date are set. Great!
I've implemented in my code : <RadzenDatePicker @bind-Value="@dev.DateFin" DateFormat="d" />
The result is :
As you can see, the month and year of today's date are not set. Not good!
Have an idead why the date is not setting?
(Blazor DatePicker Component | Free UI Components by Radzen )
enchev
October 20, 2022, 10:51am
2
We are not sure why you have such date. Can you reproduce the same on our demo?
SCosmos
October 20, 2022, 11:28am
3
I've put in my application your first example in your demo.
<RadzenDatePicker @bind-Value=@value DateFormat="d" />
@code{
DateTime? value = DateTime.Now;
}
The result is good :
this means I cannot bind specific values other than DateTime? value = DateTime.Now;
The value I want to bind has the definition public DateTime DateFin { get; set; }
enchev
October 20, 2022, 11:40am
4
This property has default value default(DateTime) which explains why you get the described result.
SCosmos
October 20, 2022, 12:08pm
5
Ok I've to set the DateFin