Пример. Строки формата


startDate 1/1/2020 12:00:00 AM;

Исходный код
-------------------------Pages\Bind\DateBinding.razor
        @page "/date-binding"


<p>
    <label>
        <code>yyyy-MM-hh</code> Format:
        <input @bind="startDate" @bind:format="yyyy-MM-hh" />
    </label>
</p>


<p>
    <code>startDate</code> @startDate;
</p>



@code {
    DateTime startDate = new DateTime(2020, 1, 1);
}

        
An error has occurred. This application may no longer respond until reloaded. Reload 🗙
Web hosting by Somee.com