Date date = new Date(); DateFormat dateFm = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); System.out.println(dateFm.format(date));
cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.FRIDAY); System.out.println("After Setting Day of Week to Friday: " + dateFormat.format(cal.getTime()));