All you have to do is apply the format you want in the html helper call, ie.
@Html.TextBoxFor(m => m.RegistrationDate, "{0:dd/MM/yyyy}")
You don’t need to provide the date format in the model class.
More Related Contents:
- Format datetime in asp.net mvc 4
- How to determine if using MVC4 vs MVC5 vs MVC6? [closed]
- How to use sessions in an ASP.NET MVC 4 application?
- MVC DateTime binding with incorrect date format
- Can we pass model as a parameter in RedirectToAction?
- Unity Inject dependencies into MVC filter class with parameters
- How can I specify an explicit ScriptBundle include order?
- The anti-forgery token could not be decrypted
- Redirect from asp.net web api post action
- Why is my CSS bundling not working with a bin deployed MVC4 app?
- ASP.NET MVC 4 intercept all incoming requests
- How can I pass parameters to a partial view in mvc 4
- ASP.NET MVC framework 4.5 CSS bundle does not work on the hosting
- Is there any good reason to use FormCollection instead of ViewModel?
- Razor actionlink autogenerating ?length=7 in URL?
- MVC Custom Validation for List on Client Side
- DateTime (date and hour) validation with Data Annotation
- MVC4 input field placeholder
- How to link HTML5 form action to Controller ActionResult method in ASP.NET MVC 4
- ASP.NET MVC 4 Application Calling Remote WebAPI
- CS0234: Mvc does not exist in the System.Web namespace
- The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value
- Calling another different view from the controller using ASP.NET MVC 4
- Routing in Asp.net Mvc 4 and Web Api
- How do I create a MVC Razor template for DisplayFor()
- MVC 4 how to validate a non-US date with client validation?
- show only the date in @Html.EditorFor helper
- ASP.NET MVC: RedirectToAction with parameters to POST Action
- Include all files in a folder in a single bundle
- Routing with and without controller name in ASP.NET MVC 4