title: Input tag type time to get value in 12-hour format in ASP.NET
body: <p>I am using an ASP Textbox with TextMode time:</p>
  
  <pre><code>&lt;asp:TextBox TextMode="Time" ID="time_box" runat="server"&gt;
  </code></pre>
  
  <p>When I run the code in the browser, I can input the time in 12-hour format.
  But when I click the submit button, the value in the database is stored in 24-hour format.</p>
  
  <p>I also tried to do a JavaScript "alert" to see if the time is in 12-hours or not, but I still got the value in 24-hours.</p>
  
  <p>So, how do I save the time in 12-hour format in the database?</p>
  
  <p>I am using:</p>
  
  <pre><code>time_box.Text
  time_box.TextWithLiterals //or should I use this?
  </code></pre>
  
  <p>Or do I need to convert the time into 12-hours in the back-end C# code?</p>