Is there any default validation for MVC 5 where I can set min and max value of date?
In my model i want date validation
public class MyClass
I think just adding the attribute "Range" will work
[Range(typeof(DateTime), "01/01/1900", "06/06/2079", ErrorMessageResourceType = typeof(Resources.Patient), ErrorMessageResourceName = "DateOfBirth_Range")]