Q:

How do I format date and time strings in Blazor?

0

This code will help you to understand how to format date and time strings in Blazor.

All Answers

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

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

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