如题。用法如下:
<asp:CompareValidator ID="CompareValidator2" runat="server"
ErrorMessage="日期格式不正确" Operator="DataTypeCheck" Type="Date"
ControlToValidate="txtAuthDate" Display="Dynamic"
EnableViewState="False" SetFocusOnError="True" ValidationGroup="submit"></asp:CompareValidator>