U can also calculate the time difference using SimpleDateFormat:
here is the sample code :
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd yyyy HH:mm a");
System.out.println(""+sdf.format(new Date()));
String dateStart ="Jan 1 2014 5:45 PM", dateStop="Jan 2 2014 2:00 AM";
try {
Date d1 = sdf.parse(dateStart);
Date d2 = sdf.parse(dateStop);
//in milliseconds
long diff = d2.getTime() - d1.getTime();
long diffSeconds = diff / 1000 % 60;
long diffMinutes = diff / (60 * 1000) % 60;
long diffHours = diff / (60 * 60 * 1000) % 24;
long diffDays = diff / (24 * 60 * 60 * 1000);
diffHours = diffHours+24*diffDays;
// System.out.print(diffDays + " days, ");
System.out.print(diffHours + " hours, ");
System.out.print(diffMinutes + " minutes, ");
System.out.print(diffSeconds + " seconds.");
} catch (Exception e) {
e.printStackTrace();
}