Here you can find the source of getSatDayOfWeek(Date date)
public static Date getSatDayOfWeek(Date date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date getSatDayOfWeek(Date date) { if (date == null) { return null; }// ww w. ja va 2 s .c o m Calendar c = new GregorianCalendar(); c.setFirstDayOfWeek(Calendar.MONDAY); c.setTime(date); c.set(Calendar.DAY_OF_WEEK, c.getFirstDayOfWeek() + 5); return c.getTime(); } }