String was not recognized as a valid DateTime
<p>I am trying to store date from a textbox in a variable , but I am getting error like this:</p>

<p>String was not recognized as a valid DateTime.</p>

<p>Value in TextBox is like this:</p>

<p>4/24/2013</p>

<p>My code is like this:</p>

<pre><code> dat = Convert.ToDateTime (txtDate.Text);
</code></pre>

<p>Any type of help will be appreciated.</p>
