I have a model:
[DataType(DataType.EmailAddress)] [DisplayFormat(ConvertEmptyStringToNull = true)] [Display(Prompt = \"Email Address\")] public string Email { ge
you can use it as follows for the date which will also give you a "datetime" picker.
[DisplayFormat(DataFormatString ="{0:yyyy-MM-dd}",ApplyFormatInEditMode =true)]