Как показать пользовательское сообщение об ошибке для
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
Код в моей модели следующий,
[Display(Name = "When was that document issued?")]
[DataType(DataType.Date, ErrorMessageResourceName = "DocumentIssueDate_DataType",ErrorMessageResourceType = typeof(CustomErrorMessages))]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
public DateTime? DocumentIssueDate { get; set; }
В моем представлении при вводе 201 в текстовом поле даты появляется следующее сообщение об ошибке. Как мне изменить сообщение об ошибке ниже.
Значение '201' недопустимо для DocumentIssueDate.