In a Java application, I have the following situation:
Calendar today = Calendar.getInstance();
Calendar firstDate = Calendar.getInstance();
firstDate .set(2015, 01, 16);
I have to compare if these 2 dates are the same. I am interested only to know if the year, the month and the day are the same, the other informations have not to be considered (hour, minute, second, etcetc).
What is a good way to do it?