What is the correct way to increment a java.util.Date by one day.
I\'m thinking something like
Calendar cal = Calendar.getInstance(); ca
Date thisDate = new Date(System.currentTimeMillis()); Date dayAfter = new Date(thisDate.getTime() + TimeUnit.DAYS.toMillis( 1 )); Date dayBefore = new Date(thisDate.getTime() + TimeUnit.DAYS.toMillis( -1 ));