First , there is a base date for comparsion
Date baseDate = dateFormat.parse("2013-01-01");
And there is a list of event date to compare with the base date e.g. Date date2 = dateFormat.parse("2013-01-02");
So, I would like to get the compare result (in day unit), in this case it is 1.
And if
Date date3 = dateFormat.parse("2012-12-31");
Then , the result should be -1
How can I achieve that? Tried baseDate .compareTo(date3)
but it only return true/false. Thanks for helping