Problem: Getting the difference in calendar days between two dates. For an example, 6/28/1996 23:59 is one day difference from 6/29/1996 12:00.
Research: I did a bunch of research online and everyone seems to only give the difference in milliseconds, which gives you the true difference in times, but not in calendar days.
Current Solution
(int) ((new java.sql.Date(System.currentTimeMillis()).getTime()/day_conversion)) - (int) (rs.getDate("attempt_time").getTime()/day_conversion) > 0
I did an int cast to the time of the date converted to days (thereby dropping any decimals) to both the current time and recorded time and took the difference. This left me with the actual conversion in calendar days; however, I was wondering if there is just a single written method that does this for me already.