title: Date validation for a textbox
body: <p>I have been using this to take date as mm/dd/yyyy format...</p>
  
  <pre><code>&lt;asp:CompareValidator ErrorMessage="(mm/dd/yyyy)" Display="Dynamic" ID="valcDate"
      ControlToValidate="txtDob" Operator="DataTypeCheck" Type="Date"     
      runat="server"&gt;&lt;/asp:CompareValidator&gt;
  &lt;asp:RangeValidator ID="valrDate" runat="server" ControlToValidate="txtDob"  
      MinimumValue="12/31/1950"
      MaximumValue="1/1/2100" Type="Date" Text="Invalid Date" Display="Dynamic" /&gt;
  </code></pre>
  
  <p>but it is taking the two digit year also...
  plz suggest </p>