title: The value '' of the ValueToCompare property of 'cmp1' cannot be converted to type 'Date' in Internetexplorer 11 version
body: <p>I wrote compare validator for today date like below.i tried below code.</p>
  
  <pre><code>&lt;asp:CompareValidator ID="cmp1" runat="server" ControlToValidate="FromDate" ErrorMessage="From date should be less than or equal to today date"
                       Operator="LessThanEqual" Type="Date" ValidationGroup="Submit"&gt;&lt;/asp:CompareValidator&gt;
  
   cmp1.ValueToCompare = DateTime.Now.Date.ToShortDateString();
  </code></pre>
  
  <p>in .cs page.
  But its giving error like The value '' of the ValueToCompare property of 'cmp1' cannot be converted to type 'Date' in Internetexplorer 11 version.is there any way to solve this problem...
  Thanks in advance...</p>