title: How to convert 'time' from an HTML textbox to sql time?
body: <p>I have this text box in HTML.</p>
  
  <pre><code>&lt;input id="textinput" name="textTime" type="time"  class="form-control input-md" &gt;
  </code></pre>
  
  <p>The format of the input box in the browser looks like this (hh:mm AM/PM).</p>
  
  <p>How do I convert this to a Time object in Java?</p>
  
  <p>This code didn't work so far. It resulted an empty output</p>
  
  <pre><code>String timeRecorded=request.getParameter("textTime");               
   DateFormat formatter = new SimpleDateFormat("hh:mm:ss a");
   timeRecorded1 = (Date)formatter.parse(timeRecorded);
  </code></pre>