Problem in Datetime conversion in c#
<p>I have a problem while converting a string whose value is <code>dd.mm.yyyy</code> to <code>DateTime</code> in c#</p>

<pre><code>string OriginalDateFormat = "28.06.2009";
DateTime dt= Convert.ToDateTime(OriginalDateFormat);
</code></pre>

<p>Throwing an exception <code>"String was not recognized as a valid DateTime."</code></p>

<p>But if it is in <code>mm.dd.yyyy</code> then it is running fine.</p>

<p>I googled and got lots of sites but all in vain</p>

<p>Any idea?</p>

<p>Thanks in advance.</p>
