I want to increase a certain date by 1 day. I create a Calendar object like:
Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, 2012); cal.set(Cal
It doesn't make any difference when you call add. However the getters return different results :D
code snippet from GregorianCalendar#add
GregorianCalendar#add
case DAY_OF_MONTH: // synonym of DATE case DAY_OF_YEAR: case DAY_OF_WEEK: break;