title: Error while converting textbox content to DateTime format in C# ASP.net
body: <p>Hi i am developing an application, in that i required to store date in sql server 2005 database which is retrieved from a textbox in front end. In front end, user is allowed to pick a date from JQuery UI DatePicker plugin.</p>
  
  <p>Error I am getting is as follows: </p>
  
  <pre><code>String was not recognized as a valid DateTime.
  </code></pre>
  
  <p>Code i have is:</p>
  
  <pre><code>db.eventDate = DateTime.Parse(txtDate.Text, new CultureInfo("en-US").DateTimeFormat);
  </code></pre>