Here you can find the source of getThisWeekMonday()
public static Date getThisWeekMonday()
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date getThisWeekMonday() { Calendar cal = Calendar.getInstance(); cal.setTime(getTodayZero());/* w ww . ja va 2 s.co m*/ cal.set(Calendar.DAY_OF_WEEK, 2); return cal.getTime(); } public static Date getTodayZero() { Calendar cal = Calendar.getInstance(); cal.setTime(new Date()); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal.getTime(); } }