title: Datetime Custom format - Show AM/PM as capitalized and not am / pm
body: <p>I have a <code>string</code> which contains: <strong>14 Dec 2011 9:45 am</strong> (take note that "AM" is not capitalized")</p>
  
  <p>now I wanted to create a <code>datetime</code> variable with it.</p>
  
  <p>I tried looking at <a href="https://stackoverflow.com/questions/10581487/custom-datetime-format">this</a>, but it is the opposite of what I wanted.
  I also tried <a href="https://stackoverflow.com/questions/12862937/convert-string-to-datetime-in-vb-net">this</a>, but failed.
  What I've tried so far is this:</p>
  
  <pre><code>Dim dateNow As DateTime
  Dim out As String = "14 Dec 2011 9:45 am"
  dateNow = DateTime.ParseExact(out, "d MMM yyyy HH:mm tt", Nothing)
  </code></pre>
  
  <p>But sadly it's not working. Any idea? Thanks. VB.net Or C# code will be okay..</p>