title: CompareValidator date with time
body: <p>I am using the following code to make sure my textbox has a valid date entered into it:</p>
  
  <pre><code>&lt;asp:CompareValidator ID="cvStartDate" runat="server" Operator="DataTypeCheck" 
  Type="Date" ControlToValidate="txtStartDate" ErrorMessage="Please enter the 
  start date in the format of dd/MM/yyyy hh:mm"/&gt;
  </code></pre>
  
  <p>But when I enter a date with a time validation fails. Is there a way to get this type of validator to accept dates with times too <strong>or</strong> do I have to build a custom validator for this?  If I have to go down the custom validation route what would you suggest?</p>