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();
Leave a Reply
You must be logged in to post a comment.