C#: Dateformat in C# for Inserting to sql server
<p>I have a textbox with date format <code>dd/MM/yyyy</code> that I want to convert to the format <code>yyyy-MM-dd</code> to insert it into a database.</p>

<p>I tried </p>

<pre><code>Convert.DateTime/DateTime.ParseExact 
</code></pre>

<p>but it always give me the system's default date format. </p>

<p>I don't know any other method to convert it in C#...</p>
