title: Inserting the exact time into a database
body: <p>When you insert the following into a SQL database:</p>
  
  <pre><code>Date now = new Date(System.currentTimeMillis());
  PreparedStatement audit = sqlConn.prepareStatement("INSERT INTO [Table](Date) VALUES (?)");
  audit.setDate(1, now);
  audit.execute();
  </code></pre>
  
  <p>This is the result:</p>
  
  <p>2013-09-06 00:00:00.000</p>
  
  <p>How do I also get the time information inserted into the database?</p>
  
  <p>Edit: The column datatype is DateTime.</p>