Date object will return 1537865065664 on two Difference Date Object in java : <p>I want time difference in second using new Date().getTime() in java.
But i will return me long digit like this 1537865065664.
How can i get difference between two Date() object.
I will attached few part of my code below.</p>

<pre><code>     Date starttime=new Date();
      long diff=  new Date().getTime() - starttime.getTime()
 System.out.println("hangupClicked New Time :: "+new Date().getTime()+" :: "+starttime.getTime());
</code></pre>

<p>Output :: 
hangupClicked New Time :: 1537865248609 :: 1537865348612</p>
