This code will help you to understand how to format date and time strings in Blazor.
The format-value attribute is used to format the DateTime strings. Other formats, like currency or number formats, are currently not available.
<input @bind="@StartDate" format-value="yyyy-MM-dd" /> @code { private DateTime StartDate { get; set; } = new DateTime(2020, 1, 1); }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
The format-value attribute is used to format the DateTime strings. Other formats, like currency or number formats, are currently not available.
need an explanation for this answer? contact us directly to get an explanation for this answer