Blazor-DateTime-Local.jpg

 

<input type="datetime-local" 
       @bind="@model.DateTimeStarted" 
       @bind:format="yyyy-MM-ddTHH:mm"
       class="form-control" />

 

model.DateTimeStarted = DateTime.Today;

 

Comments


Comments are closed