title: Convert string date to system datetime in C#
body: <p>I want to convert string date to system datetime in C#. The user enters date through textbox and it should be converted as to datetime. I trid following code but its not working...</p>
  
  <pre><code>DateTime ToDate = Convert.ToDateTime(txtToDate.Text);
  DateTime FromDate = DateTime.Parse(txtFromDate.Text);
  </code></pre>
  
  <p>It shows the following exception
  "String was not recognized as a valid DateTime."</p>
  
  <p>How to do this...???</p>