title: Java Date and Timestamp
body: <p>Consider this code:-</p>
  
  <pre><code>        String t = "2013-10-05 09:10:37.029074";
          Timestamp ts = Timestamp.valueOf(t);
  
          Date d = new Date(ts.getTime());
          Timestamp ts2 = new java.sql.Timestamp(d.getTime());
          System.out.println("ts --&gt;"+ts);
          System.out.println("ts2--&gt;"+ts2);
  </code></pre>
  
  <p>When I run this, I get the result as.</p>
  
  <pre><code>ts --&gt;2013-10-05 09:10:37.029074           ts2--&gt;2013-10-05 09:10:37.029
  </code></pre>
  
  <p>I do NOT want to ignore milisecods (Please see the diff between 029074 and 029). It seems to be rounding.</p>
  
  <p>I want to preserve even the fraction.</p>