Java calendar weekend of current week

calendarjavaweekend

Java using calendar i want to get date of current weekend, any quick idea

Best Solution

Calendar c = Calendar.getInstance();
c.set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
c.getTime(); // => Date of this coming Saturday.