title: Java: resultSet.getTimestamp loses time
body: <p>I have the following entry in my database:</p>
  
  <pre><code>Start                   End
  2013-08-25 14:23:20     2013-09-14 14:23:20
  </code></pre>
  
  <p>(type is datetime, database is MySQL)</p>
  
  <p>And in my java application I want to set this date and time to a calendar as followed:</p>
  
  <pre><code>java.sql.Timestamp timeStampStart = inResults.getTimestamp("start");
  System.out.println("Start: " + timeStampStart);
  Calendar start = new GregorianCalendar();
  start.setTime(timeStampStart);
  </code></pre>
  
  <p>Edit:</p>
  
  <p>added System.out.println to the code:</p>
  
  <pre><code>Start: 2013-08-25 15:11:08.0
  End: 2013-09-14 15:11:08.0 (same code as for start)
  </code></pre>
  
  <p>Now the thing is, the time is lost when I call inResults.getTimestamp. I get the correct date, but the time is the time the queried is executed instead of the time in the database.</p>
  
  <p>Any ideas?</p>