I am using the following in my model for a date control
[DataType(DataType.DateTime)]
public DateTime txtDateAppCompletion { get; set; }
I also tried DataType.Date as I only want a date input.
[DataType(DataType.Date)]
public DateTime txtDateAppCompletion { get; set; }
For some reason when I run the form and I type anything that is not a date it does not validate it, not on server or on client(client validation is enabled).
Any Idea why I am having this problems? How to solve it?