title: Convert Date String to DateTime
body: <p>I have to convert a date string to a DateTime object as follows</p>
  
  <pre><code>tmpdate = "27-Apr 14:53";
  TheDate = DateTime.ParseExact(tmpdate, "DD-MMM HH:mm", CultureInfo.InvariantCulture);  
  </code></pre>
  
  <p>I keep getting exceptions about the string not being a valid date time. I've tried adding in the year as well with no luck. Any suggestions?</p>