Loading, please wait...

A to Z Full Forms and Acronyms

How do I bind input of type time with Blazor?

This code will help you to understand how to bind input of type time with Blazor.

You can bind an input of type time in Blazor by using the @bind property to the time value and @bind:format property to specify the supported time format in the DOM input element.

Refer to the following code sample.

<input type="time" @bind="SomeTime" @bind:format="HH:mm"/>

@code {
    public DateTime SomeTime = new DateTime();
}

 

A to Z Full Forms and Acronyms

Related Article