Convert string to DateTime with format "dd/MM/yyyy"
<p>I have a string that is a date in the format of "MMddyyyy". I need to convert it to a DateTime with formatting "dd/MM/yyyy". I created the following code, but I keep getting a Format Exception. Parse, ParseExact, TryParseExact all give a Format Exception also.</p>

<pre><code>string dater = "10312016";
DateTime condate = Convert.ToDateTime(dater);
</code></pre>

<p>I have tried the following:</p>

<pre><code>string dater = "10312016";
        DateTime condate =  DateTime.ParseExact(dater, "MMddyyyy", CultureInfo.InvariantCulture);
        DateTime condate2 = DateTime.ParseExact(dater, "yyyyMMdd", CultureInfo.InvariantCulture);
</code></pre>

<p>condate works, but it is in the wrong format. It needs to be "dd/MM/yyyy"</p>