Here you can find the source of getMonday(Date date)
public static Date getMonday(Date date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date getMonday(Date date) { Calendar c = Calendar.getInstance(); c.setTime(date);//from w ww .j a va 2 s . co m c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); return c.getTime(); } }