How to validate Datetime property in my MVC2 Validation.
I have telerik datetime picker to validate
<%= Html.Telerik().DatePicker().Name("EffectiveDate")%>
[Required(ErrorMessage = "EffectiveDate Must not be empty!")]
public DateTime EffectiveDate { get; set; }
}
if I use this code I am not able to validation the EffevtiveDate. Because I am just suspecting that effective date showing as "" instead of null.
how to check "" value using regular expressiong here?
thanks