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?) |