compare validator asp.net, c#
Posted on 2009-05-08
Hi i have the following code
<asp:RegularExpressionValidator ID="Year" runat="server" ControlToValidate="txtdate"
ErrorMessage="Please Enter yyyy-mm" ValidationExpression="(19|20)\d\d-(0[1-9]|1)"></asp:RegularExpressionValidator>
which makes sure that the date entered is on yyyy-mm format
i also have two text bos one is txtDate which is start date and the other is txtEnddate,
What i want to do is compare it so that the end date is never less than start bearing in mind the format i have given.