Here you can find the source of getLastDayOfCurrWeek()
public static Date getLastDayOfCurrWeek()
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date getLastDayOfCurrWeek() { Calendar c = new GregorianCalendar(); c.set(Calendar.DAY_OF_WEEK, c.getFirstDayOfWeek() + 6); // Sunday c.set(Calendar.MILLISECOND, 999); c.set(Calendar.SECOND, 59); c.set(Calendar.MINUTE, 59); c.set(Calendar.HOUR_OF_DAY, 23); return c.getTime(); }//from w ww . ja va 2 s. c om }