I'm storing time in my database by setting year, month, day, hour, and minute individually, and I would like to know the date difference between two datetimes. This is clumsy and cumbersome, and I would like to know what the best practice for doing something like this:
1/1/2016 12:00am - TimeUnit.MINUTES.toMillis(1800000) = 12/31/2015 11:30pm