title: How to convert timespan to pm or am time?
body: <p>I'm storing user time in UTC time and when I show it I need to convert it to am pm time.</p>
  
  <p>Here is example in database I have 17:00:00 convert to 5:00 pm</p>
  
  <p>Here is the code what I came up so far but it's not working</p>
  
  <pre><code>var time = DateTime.ParseExact(object.Time.ToString(), "HHmm", CultureInfo.CurrentCulture).ToString("hh:mm tt");
  </code></pre>