title: Parsing a Date Like "Wednesday 13th January 2010" with .NET
body: <p>How can I convert the following strings to a System.DateTime object?</p>
  
  <p>Wednesday 13th January 2010<br>
  Thursday 21st January 2010<br>
  Wednesday 3rd February 2010  </p>
  
  <p>Normally something like the following would do it</p>
  
  <pre><code>DateTime dt;
  DateTime.TryParseExact(value, "dddd d MMMM yyyy", DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out dt);
  </code></pre>
  
  <p>but this doesn't work because of the 'th', 'st' or 'rd' in the string</p>
  
  <p><em>Update</em></p>
  
  <p>It appears that DateTime <a href="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx" rel="noreferrer">doesn't support formatting</a> the 'th', 'st', 'rd' etc so they need to be stripped before parsing. Rubens Farias provides a nice regular expression below.</p>