可能性の重複:
How to get date of last Friday from specified date?カレンダーを使用すると、どのように相対日付を見つけることができますか?
がjava.util.Calendar
(または他のライブラリ)を使用して、私が何日を見つけることができます方法はあり何年が何であったかの月「金曜日2何週間前"?
Calendar vCal = Calendar.getInstance();
vCal.add(Calendar.WEEK_OF_YEAR, -2); //two weeks ago
vCal.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY); //friday
int vDay = vCal.get(Calendar.DAY_OF_MONTH); //day
int vMonth = vCal.get(Calendar.MONTH); //month
int vYear = vCal.get(Calendar.YEAR); //year
Date d = vCal.getTime(); //full date
幸運:
この方法を試してみてください
ここをチェック - http://stackoverflow.com/questions/5944760/how-to-get-date-of-last-friday-from-specified-date – Perception