It is quite simple to configure.
As an @model DateTime? model @model DateTime? . Name the file DateTime.cshtml .
Depending on how you plan on rendering your inputs, you may have to have some logic in the template along the lines
@if (Model == null) { // do this } else { // do that }
StanK source share