Gives solution for any Error occurs in any Programming Language, .Net Core 3.1, 3.0, C#,Asp.Net,Sqlserver,MVC,Java,Php,Html,Css,Jquery,errors and solutions,Latest News,Technology

Saturday 6 February 2021

Define Date Format dd-MMM-yyyy | yyyy-MM-dd in ASP.Net Core 3.1

No comments :

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}

No comments :

Post a Comment