Ok dear, there is many ways to do it, I guess the simplest is using
RegularExpressionValidator & for start up that's be nice for u too!
anyway its the sample for u, Here u should Enter the Date in
dd-mm-yy format & if u wanna change that u should only change the expression & ...
Code:
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Enter Valid Date!"
ControlToValidate="TextBox1" ValidationExpression="\d{2}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
</form>
or u may use CustomValidator, HTH.
Always:),
Hovik Melkomian.