How do I allow users to only enter an old date if I have this code in model, before the BirthDate
property?
[DataType(DataType.Date)]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
public System.DateTime BirthDate { get; set; }
Can this be achieved without using JavaScript? If yes, how?