Sep 30

Use the Calendar class to set the day of the week to the first day of the week.


Calendar cal = Calendar.getInstance();
cal.set(Calendar.DAY_OF_WEEK, 
   cal.getActualMinimum(Calendar.DAY_OF_WEEK));
Date firstDayOfTheWeek = cal.getTime(); 

written by objects \\ tags: ,


Leave a Reply