title: Exception java.text.ParseException when parsing datetime input type in JSP page
body: <p>I am getting exception <code>java.text.ParseException</code> when parsing datetime input type in JSP page. I need to store date in the database but I could not.</p>
  
  <pre><code>&lt;input type="datetime-local" required="required" name="TAT" &gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre><code>SimpleDateFormat fmt = new SimpleDateFormat("E MM-dd-yyyy 'at' hh:mm:ss a");
  String parameter = request.getParameter("TAT");
  Date date = fmt.parse(parameter);
  System.out.println(fmt.format(date));
  </code></pre>
  
  <p>I could not get it as Date and time format to store.</p>