Date format "dd/MM/yyyy" to "yyyy/MM/dd"
<p>I know this question has been asked before and resolved using various methods.</p>

<p>I am converting a value from a string to a DateTime.<BR></p>

<p>Throughout the project I have used the same CultureInfo, all strings that where converted to date where done using Convert.ToDateTime(), but now there is one text field that refuses to convert. </p>

<p>I have tried:</p>

<pre><code>string date = "27/02/2013";
string startdated = (Convert.ToDateTime(date)).ToString("yyyy/MM/dd");
</code></pre>

<p>(converts to datetime and changes it back to sting in my required format. This works fine on everything else) </p>

<p>even</p>

<pre><code>Datetime dt = Convert.toDateTime(date); doesn't work 
DateTime.ParseExact(date, "yyyy/MM/dd", format); doesn't work
</code></pre>

<p>And all give me the same error "String was not recognized as a valid DateTime.". i receive my date value from a textbox with an ajax calender extender (CalendarExtender.Format = "dd/MM/yyyy" done for display purposes,this also works everywhere else i.e "dd/MM/yyyy" for display and "yyyy/MM/dd" for procedure) except this final value which simply will not change. Everthing is done via my machine with no external servers</p>
