title: Converting Date From TextBox To Date In ASP.Net
body: <p>I want to get the difference of date from Two TextBox say to and from dates..</p>
  
  <p>My Code is here</p>
  
  <pre><code>Dim ts As TimeSpan            
  ts = CDate(txtTo.Text) - CDate(txtFrom.Text)
  txtDays.Text = ts.Days() + 1
  </code></pre>
  
  <p>but this code is throwing an error like this </p>
  
  <pre><code>Conversion from string "16/11/2011" to type 'Date' is not valid.
  </code></pre>