i'm trying to set Calendar object -> today to a particular day of first week of a month.
Calendar today = Calendar.getInstance();
today.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !
today.clear(Calendar.MINUTE);
today.clear(Calendar.SECOND);
today.clear(Calendar.MILLISECOND);
today.getTime();
today.set(Calendar.YEAR,year);
today.set(Calendar.MONTH, month);
today.set(Calendar.WEEK_OF_MONTH,today.getActualMinimum(Calendar.WEEK_OF_MONTH));
today.set(Calendar.DAY_OF_WEEK, getDay()+1);
Log.d(TAG, "Test : "+getName()+", time : "+ today.getTime()+" ,year : "+year+" ,month : "+ month);
problem is, the calendar is returning the date of day set of current week.