Working with Dates And Times in Razor Pages Forms

added by DotNetKicks
11/3/2020 5:58:52 PM

421 Views

In Razor Pages, the input tag helper renders an appropriate value for the type attribute based on the data type of the model property specified via the asp-for attribute. [ BindProperty ] public DateTime DateTime { get ; set ; } DateTime: The default input type generated for DateTime properties is datetime-local in .NET Core 2.0 onwards, which is when Razor Pages was introduced.


0 comments