title: The string was not recognized as a valid DateTime (Formatting)
body: <p>I am trying to convert a Oracle <code>DateTime</code> field into a string (<code>TextBox</code>).  However I keep getting the following error: </p>
  
  <blockquote>
    <p>The string was not recognized as a valid DateTime.</p>
  </blockquote>
  
  <p>The value in the field is: <code>7/25/2013 4:12:18 PM</code></p>
  
  <p>Code:</p>
  
  <pre><code>DateTime dt = DateTime.ParseExact("MM/dd/yyyy HH:mm:ss tt",dr["category"].ToString().Trim(), CultureInfo.InvariantCulture);
  txtFedCat.Text = dt.ToString("dd/M/yyyy");
  </code></pre>