I have this attribute in my view model:
[DataType(DataType.DateTime)] public DateTime? StartDate { get; set; }
If I want to display the dat
In mvc 4 you can easily do it like following using TextBoxFor..
TextBoxFor
@Html.TextBoxFor(m => m.StartDate, "{0:MM/dd/yyyy}", new { @class = "form-control default-date-picker" })
So, you don't need to use any data annotation in model or view model class