What is the correct way to increment a java.util.Date by one day.
I\'m thinking something like
Calendar cal = Calendar.getInstance();
ca
Yeah, that's right. Java Date APIs feel wrong quite often. I recommend you try Joda Time. It would be something like:
DateTime startDate = ...
DateTime endDate = startDate.plusDays(1);
or:
Instant start = ...
Instant end = start.plus(Days.days(1).toStandardDuration());
If Java 8 or Joda Time are not an option, you could always opt for Apache DateUtils:
DateUtils.addDays(myDate, 1);