I have got below model date property that I need to validate for minimum is today date .... the property is given below...
[UIHint("Date")]
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}", ApplyFormatInEditMode = true)]
[Required(ErrorMessage="Required")]
public DateTime? DeliveryDate { set; get; }
I am not able to find the way to validate date property, but using range attributes withy datetime also not a recommended one......due to hard coded values....
is there any other approach to do validate date time model property that will validate default should be today date .....
would any one please help on this, that would be very grateful to me..... many thanks in advance......
I am using kendo ui datetimepicker for this purpose ....