title: Error Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff] while saving timestamp into databse
body: <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss a z");
  sdf.setTimeZone(TimeZone.getTimeZone("US/Eastern"));
  String DateToStoreInDataBase= sdf.format(obj1.getSomeDate().toGregorianCalendar().getTime());
  System.out.println(emprSubDte);
  
  Timestamp ts = Timestamp.valueOf(emprSubDte);
  
  preparedStatement.setTimestamp(72,ts);
  </code></pre>
  
  <p>sysout of DateToStoreInDataBase is = " 2014-19-13 12:19:59 PM EDT" when i am trying to save this result into database in am getting error Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff].</p>
  
  <p>I have the same format but still i am reciving the error.</p>