Saturday, 6 February 2021
Define Date Format dd-MMM-yyyy | yyyy-MM-dd in ASP.Net Core 3.1
To set a date format for a TextBox control in ASP.Net Core 3.0 or 3.1 you need to define like below in .cshtml(Razor) page.
<input type="text" asp-format="{0:dd-MMM-yyyy}"/>
In the above format you can define anything like as per your requirement.
asp-format="{0:yyyy-MM-dd}
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment