I can't use @bind-Value with DatePicker

I'm trying to bind a DateTime field directly to the DatePicker component using @bind-Value="@DateTimeVariable" but this is causing an error when compiling. Am I doing something wrong here?

Severity Code Description Project File Line Suppression State
Error CS0266 Cannot implicitly convert type 'object' to 'System.DateTime'. An explicit conversion exists (are you missing a cast?)

Reproduced. It will be fixed in the next version!

1 Like

I tried latest Radzen version (3.9.7) and it seems that issue still exists. Any update on that?

Or workaround ?
Many thanks,

Hi @KarolinaK,

The Value of the first DatePicker in our demo is bound: