title: Get hour from date() in java
body: <p>for comparison hours I need to get them out Date(). I have two dates I need to find the difference in them exactly in the hours</p>
  
  <pre><code>Date date1 = new Date();
  Date date2 = new Date();
  System.out.println(date1.getHours()-date2.getHours());
  </code></pre>
  
  <p>I understand it is not correct code, 
  but need something like that</p>