Let’s say today is any random day and I’m trying to find the date for next Tuesday. Currently I’m only able to find the date for the Tuesday of this week…
cal.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY);
How can I get NEXT Tuesday and forget about last Tuesday?
How about…
Usually, these sorts of questions result in a bunch of people rightfully yelling “JODA!”
[edited by bwoogie] My final code: