title: DateTime parsing
body: <p>I am writing a syslog server that receives syslog messages and stores them in a database.</p>
  
  <p>I am trying to parse the date string received in the message into a <code>DateTime</code> structure.</p>
  
  <p>For the following examples, I'll be using an underscore in place of whitespace for clarity; the actual strings received have spaces.</p>
  
  <p>The string I received is in the format <code>"Jun__7_08:09:10"</code> - please note the two whitespaces between the month and day.</p>
  
  <p>If the day is after the 10th, the strings become <code>"Jun_10_08:09:10"</code> (one whitespace).</p>
  
  <p>If I parse with:</p>
  
  <pre><code>DateTime.ParseExact(Log.Date, "MMM  d HH:mm:ss", CultureInfo.InvariantCulture);
  </code></pre>
  
  <p>it works for strings from the 1st to 9th but throws exception from the 10th forward, and if I parse with one space, it throws an exception on the 1st to 9th (and works from the 10th on).</p>
  
  <p>What is the correct way to parse this string?</p>