compare two dates using compare validator
<p>I am trying to compare two date textboxes to make sure one date is greater than the other. I am getting errtatic response where it is rejecting this rule eventhough the date is greater. Anything wrong with this code? Here is my definition</p>

<pre><code> &lt;asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtStDt" ControlToValidate="txtEdDt" 
                    ErrorMessage="End date must be later than the start date!" 
                    Operator="GreaterThan" Type="Date"  ValidationGroup="VG1"&gt;  
 &lt;/asp:CompareValidator&gt;
</code></pre>

<p>The date format I'm using with the calendar extender in both the dates' textboxes is 'dd/MMM/yyyy'. Thank you for any help!</p>
