How to convert dd/MM/YYYY formatted string date to YYYY-MM-dd datetime?
<p>I wanna convert <code>dd/MM/YYYY</code> formatted string date to <code>YYYY-MM-dd</code> datetime. But it returns to me </p>

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

<p>How can i convert from "04/26/2016" string to  yyyy-MM-dd datetime format?</p>

<pre><code> DateTime dt = DateTime.ParseExact("04/26/2016", "yyyy-MM-dd", CultureInfo.InvariantCulture);
 Console.WriteLine(dt);
</code></pre>