title: Convert java.util.date default format to Timestamp in Java
body: <p>The default format of java.util.date is something like this "Mon May 27 11:46:15 IST 2013". How can I convert this into timestamp and calculate in seconds the difference between the same and current time?</p>
  
  <pre><code>java.util.Date date= new java.util.Date();
  Timestamp ts_now = new Timestamp(date.getTime());
  </code></pre>
  
  <p>The above code gives me the current timestamp. However, I got no clue how to find the timestamp of the above string.</p>