Calendar cal = Calendar.getInstance(); int daysBackToSat = cal.get(Calendar.DAY_OF_WEEK ); if(daysBackToSat<7) { daysBackToSat += 7; } cal.add(Calendar.DATE, daysBackToSat*-1); System.out.println(sdf.format(cal.getTime()));
You must be logged in to post a comment.