want to override datetime "wrong format message".
i.e by default DateTime property display message:: The value '12--2002' is not valid for * dateTime PropertyName: (DD/MM/YYYY).
But i want this message to display through some Resource file.
public class candidateAddressViewModel
{ [Required(ErrorMessageResourceType = typeof(myApp.Resources.res.Resource),
ErrorMessageResourceName = "error_format")]
[Display(Name = "lived_from", ResourceType = typeof(myApp.Resources.res.Resource)), DisplayFormat(DataFormatString = "{0:dd-MM-yy}", ApplyFormatInEditMode = true)]
public DateTime? dateTimePropertyName{ get; set; }
}
Suggest me easiest possible way.