title: Issue converting from java.util.Date to java.sql.Timestamp
body: <p>I'm trying to put a user provided date into an SQL database, and I have the following lines to process the string and convert it to a java.sql.Timestamp object.</p>
  
  <pre><code>SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd'T'hh:mm");
  java.util.Date badDate = formatter.parse(request.getParameter("datetime")); 
  Timestamp date = new Timestamp(badDate.getTime());
  </code></pre>
  
  <p>The issue is, badDate is the correct date that the user input, but date always gets set to the wrong month and day, usually January 2, and the correct time and year. I had the same problem when I tried to convert to a java.sql.Date object, but then the time was set to midnight as well. I couldn't find anyone with a similar problem after some searching, maybe someone here has seen something like this? </p>