title: How to convert java.util.Date into current time in timestamp..?
body: <p>i am making a program in java.
  i am using the following code</p>
  
  <pre><code>u.setLastlogin(new java.util.Date());
  </code></pre>
  
  <p>above function accepts parameter as <code>java.util.Date</code> but i want to store this value in a database table where the column is of type <code>timestamp</code>?</p>
  
  <p>can any one help how to code so that i can insert the current timestamp of the system in the table. thanks.</p>