title: Textbox date to database
body: <p>I have the following code which worked fine on a .net 1.1 website:</p>
  
  <pre><code>objSQLCommand.Parameters.Add(New SqlParameter("@date", SqlDbType.DateTime, 8))
  objSQLCommand.Parameters("@date").Value = txtDate.Text
  </code></pre>
  
  <p>This doesn't work on a .net 3.5 server.</p>
  
  <p>I'm getting a message saying that it can't convert a string to datetime.</p>