Hi all I am having my date format in the following format dd-MMM-yy
I am using compare validator to validate the dates as follows
<asp:CompareValidator ID="cmpDates" runat="server" ControlToValidate="StartDate"
SetFocusOnError="true" ControlToCompare="EndDate"
ErrorMessage="EndDate must be greater than StartDate"
Display="None" Operator="DataTypeCheck"
ValidationGroup="vg" Type="Date"
CultureInvariantValues="true">
</asp:CompareValidator>
But this is not working as per required so can some one help me how Can I validate the dates in the required format
Try this, here we use the Ajax calander control to get the input in dd/mm/yyyy format and then use the compare validator