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
Date date1 = new Date();
Date date2 = new Date();
System.out.println(date1.getHours()-date2.getHours());
I understand it is not correct code, but need something like that