title: Date formatting yyyymmdd to yyyy-mm-dd
body: <p>I'm trying to convert a date in yyyymmdd format to yyyy-mm-dd with the following code:</p>
  
  <pre><code>tdrDate = DateTime.ParseExact(dateString, "yyyymmdd", null).ToString("yyyy-MM-dd");
  </code></pre>
  
  <p>This works the only problem is that when I have a date such as this "<strong>20070205</strong>" I get back "<strong>2007-01-05</strong>".  I don't know why this is happening, any help is appreciated.</p>