title: string to DateTime conversion in C#
body: <p>Stupid questions but cant get my head around it...
  I have a string in this format 20081119</p>
  
  <p>And I have a C# method that converts the string to a DateTime to be entered into a SQL Server DB </p>
  
  <pre><code>public static DateTime MyDateConversion(string dateAsString)
      {
  
          return System.DateTime.ParseExact(dateAsString, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture);
  
      }
  </code></pre>
  
  <p>The problem is that the Date is coming out like this: Date = 19/11/2008 12:00:00 AM and I need it to be a DateTime of type yyyyMMdd as I am mapping it into a schema to call a stored proc.</p>
  
  <p>Thanks in advance guys.</p>
  
  <p>Cheers,
  Con</p>