如何获取本周星期一的日期而不是下面的星期日是我的代码,它给我输出我不想要的时间
Calendar cal = Calendar.getInstance();
cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !
cal.clear(Calendar.MINUTE);
cal.clear(Calendar.SECOND);
cal.clear(Calendar.MILLISECOND);
// get start of this week in milliseconds
cal.set(Calendar.DAY_OF_WEEK, cal.getFirstDayOfWeek());
Log.d(tag,"Start of this week : " + cal.getTime());
this give output likr this
Sun Sep 08 00:00:00 GMT+05:00 2013
and i wan to get like this
Mon Sep9 2013 only