Here you can find the source of getThatMonday(Calendar cal)
public static Calendar getThatMonday(Calendar cal)
//package com.java2s; /*//from w ww . j a v a2 s . co m * Title: TRS ?????? * Copyright: Copyright (c) 2004-2005, TRS?????????????. All rights reserved. * License: see the license file. * Company: TRS?????????????(www.trs.com.cn) * * Created on 2005-5-11 */ import java.util.Calendar; public class Main { public static Calendar getThatMonday(Calendar cal) { int n = cal.get(Calendar.DAY_OF_WEEK) - Calendar.MONDAY; cal.add(Calendar.DATE, n); return cal; } }