Here you can find the source of getLastWeekDate(Date date)
public static Date getLastWeekDate(Date date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static int FIRST_DAY_OF_WEEK = Calendar.MONDAY; public static Date getLastWeekDate(Date date) { Calendar c = getCalendar(); c.setTime(date);//from w w w.j av a2 s .com c.add(Calendar.WEEK_OF_YEAR, -1); return c.getTime(); } private static Calendar getCalendar() { Calendar c = Calendar.getInstance(); c.setFirstDayOfWeek(FIRST_DAY_OF_WEEK); return c; } }