In my model I have the following DataAnnotations on one of my properties
[Required(ErrorMessage = \"*\")] [DisplayFormat(DataFormatString = \"{0:d}\")] [Data
The [DisplayFormat] attribute is only used in EditorFor/DisplayFor, and not by the raw HTML APIs like TextBoxFor.