title: Convert a datetime value to time with 12hour system
body: <p>I'm working on <code>ASP.NET MVC</code> project with <code>Entity Framework</code>.</p>
  <p>I have a <code>Datetime</code> value received from <code>SQL Server database</code>, the <strong>value inside database look like :</strong>  <code>8/1/2020 10:00:00 AM</code>, and inside the <code>view</code> I want to get just the time part from the full date <em>( I want time showed with 12H system )</em> , so I try this :</p>
  <p><strong>View :</strong></p>
  <pre><code>&lt;tr&gt;
      
  &lt;td&gt;@item.DT_ABS.ToString(&quot;hh:mm tt&quot;)&lt;/td&gt;
     
  &lt;/tr&gt;
  </code></pre>
  <p><strong>Result should be :</strong></p>
  <pre><code>10:00 AM 
  </code></pre>
  <p><strong>Result I got :</strong></p>
  <pre><code>10:00
  </code></pre>
  <p>So please any help about this issue ?</p>