Compare Validator in asp.net?
<p>In web application, i am try to validate the date by using compare validator. but it is throwing error, This is my code </p>

<pre><code>&lt;asp:CompareValidator 
               ID="CompareValidator1" 
               runat="server" 
               Text="*" 
               Display="None" 
               ValidationGroup ="a" 
               ControlToValidate="txtValidate" 
               ValueToCompare='&lt;%# DateTime.Today.ToShortDateString() %&gt;'
               Operator="GreaterThan"   
               Type ="Date" 
               ErrorMessage="Date Should Greater Than Todate"&gt;
&lt;/asp:CompareValidator&gt;
</code></pre>

<p>The error is :</p>

<blockquote>
  <p>The value '' of the ValueToCompare property of 'CompareValidator1'
  cannot be converted to type 'Date'.</p>
</blockquote>
