c# time format weirdness
<p>I have the following string TheTimeFormat as the custom time format:</p>

<pre><code>  "{0:h:mm tt}"
</code></pre>

<p>I have the following DateTime TheTime:</p>

<pre><code>  {1/14/2011 2:19:00 AM}
</code></pre>

<p>I have the following statement</p>

<pre><code>  ThisTime = TheTime.ToString(TheTimeFormat);
</code></pre>

<p>Why is ThisTime equal to "<code>{0:2:19 AM}</code>" . It should be 2:19 AM and I'm not seeing why. Not that in a gridview, I use the following statement and it works like a charm:</p>

<p><code>((BoundField)(MyGrid.Columns[0])).DataFormatString = TheUserPreferences.UserTimeFormat</code>; where TheUserPreferences.UserTimeFormat is the same format string.</p>

<p>Any suggestions?</p>
