title: Java - Oracle - DB Insert - Timestamp to Date column
body: <p>I have a table column of data type DATE. I am inserting through Java PreparedStatement , how can I store timestamp also when inserting? Is it possible to store time stamp in DATE column?</p>
  
  <p>I tried </p>
  
  <pre><code>ps.setTimestamp(index, new java.sql.Timestamp(date.getTime()));
  </code></pre>
  
  <p>But did not work.</p>
  
  <p>Thanks in advance.</p>