Is there a way to add real days to a java.util.Calendar
instance?
Example: Calendar
instance, date set to 01. Dec. 2015
.
Now I want to add 31 days
to the Calendar, so the resulting date should be 01. Jan. 2016
. DAY_OF_YEAR
doesn't seems suitable because it represents a day in a year, not a real day.
No duplicate: My demand is to add real days to a Calendar
instance and there is no other post which explains the actual work done by Calendar.DATE
/ Calendar.DAY_OF_YEAR
.
Regards