Q:

How do I bind input of type time with Blazor?

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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();
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now