title: Java Timestamp conversion error
body: <p>Here is my problem with time stamp:</p>
  
  <p>in MySql data base there is a column name <code>creation_date</code> with data type <code>timestamp</code></p>
  
  <p>the value in the column is <code>2014-07-04 17:35:07.0</code>
  when I am trying to convert it to millisecond using java code, it is showing different behavior</p>
  
  <p>For example </p>
  
  <p>if I fetch it using hibernate and print <code>timestamp.getTime()</code> it is showing <code>1404484507000</code></p>
  
  <p>but while doing </p>
  
  <pre><code>Timestamp t=new Timestamp(2014, 7, 4, 17, 35, 7, 0);
  System.out.println("t.getTime() - "+t.getTime());
  </code></pre>
  
  <p>it is showing  <code>61365297907000</code></p>
  
  <p>What's going wrong here.</p>