Hello
Here is the .aspx code to compare the two dates.....
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>:: Date Validator ::</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border="0" cellpadding="2" cellspacing="1">
<tr>
<td><asp:Label ID="lblMsg" runat="server" Text="Enter Start Date (dd/mm/yyyy)"></asp:Label></td>
<td><asp:TextBox ID="txtDate1" runat="server"></asp:TextBox> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtDate1" ErrorMessage="*" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator></td>
</tr>
<tr>
<td><asp:Label ID="lblMsg2" runat="server" Text="Enter End Date (dd/mm/yyyy)"></asp:Label></td>
<td><asp:TextBox ID="txtDate2" runat="server"></asp:TextBox> <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtDate2" ErrorMessage="*" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator></td>
</tr>
<tr>
<td colspan="2">
<asp:CompareValidator ID="cmpStartDate" runat="server"
ControlToValidate="txtDate1"
ErrorMessage="Start date cannot be less than today's date"
Operator="GreaterThanEqual" Type="Date"></asp:CompareValidator>
<asp:CompareValidator ID="cmpEndDate" runat="server"
ErrorMessage="End date cannot be less than start date"
ControlToCompare="txtDate1" ControlToValidate="txtDate2"
Operator="GreaterThanEqual" Type="Date"></asp:CompareValidator>
</td>
</tr>
<tr>
<td colspan="2"><asp:Button ID="btnValidate" runat="server" Text="Validate"/></td>
</tr>
</table>
</div>
</form>
</body>
</html>