Display DateTime value in dd/mm/yyyy format in Asp.NET MVC

The Solution to Display DateTime value in dd/mm/yyyy format in Asp.NET MVC is


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.

~ Answered on 2013-08-18 16:05:08


Most Viewed Questions: