title: ASP .NET C# Change from Military time to Standard Time
body: <p>I have this:</p>
  
  <pre><code>StringBuilder sb = new StringBuilder(time.Text);
  if (DateTime.Parse(time.Text) &gt; DateTime.Parse("12:00:00 AM")
      &amp;&amp; DateTime.Parse(time.Text) &lt; DateTime.Parse("11:59:59 AM"))                                    
  {
      time.Text = time.Text + " AM";
  }
  else
  {
      time.Text = time.Text + " PM";
  }
  </code></pre>
  
  <p>What I have now is 16:34 PM,</p>
  
  <p>I want it to display 04:34 PM</p>