title: string was not recognized as a valid datetime. in c#
body: <p>i am using this code for passing datetime.</p>
  
  <pre><code>Convert.ToDateTime(textBox1.Text)
  </code></pre>
  
  <p>but the compiler show an error that string was not recognized as a valid datetime. so how to avoid this error and is a datetime field in my database.</p>