n_t_in
April 28, 2022, 5:04pm
1
I am trying to set the TValue for RadzenDatePicker to be DateOnly but it gives me an invalid cast exception.
<RadzenDatePicker TValue="DateOnly" @bind-Value=@_date Change=@(args => OnDateChange()) Class="w-100" />
_date variable is also of type DateOnly.
Does Radzen only accepts DateTime and not DateOnly?
Indeed, RadzenDatePicker does not support DateOnly.
n_t_in
April 28, 2022, 5:11pm
3
Thanks. Would this be something that will be implemented in future? If we don't need a time property for the requirement, it would be ideal that the date picker accepts DateOnly as well.
1 Like
We don't have plans to add explicit support for DateOnly.
fedor
July 21, 2023, 6:45pm
5
it's really very stupid to show datetime in Date Picker
fedor
July 21, 2023, 6:49pm
6
Got it
DateFormat="MM/dd/yyyy"
<RadzenDatePicker Style="width: 100%;" DateFormat="dd/MM/yyyy" @bind-Value="kullanici.IseGirisTarihi" />
DateFormat="dd/MM/yyyy" support this.