long dif = date1.getTime() - date2.getTime(); System.out.println("Dias entre fechas: " + dif / 86400000L); // 3600 * 24 * 1000