The plusDays method plusDays not a mutator. It returns a copy of this DateTime object with the change, not the change, of the given object.
If you want to change the value of the DateTime variable, you need to:
DateTime dateTime = new DateTime(date); dateTime = dateTime.plusDays(1);
Don Roby May 09 '13 at 12:08 2013-05-09 12:08
source share