How to set 2 dates and see how much time has passed between them.
For example:
01.01.2000 10:10:10 02.03.2005 20:10:20 and get back: 1 день 2 месяца 5 лет 10 часов 0 минут 10 секунд
And then you need to sort from the biggest time to the smallest.
I am writing in Java 7.