Android Week Get getDateInAWeek(Date date)

Here you can find the source of getDateInAWeek(Date date)

Description

get Date In A Week

Declaration

public static Date getDateInAWeek(Date date) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date getDateInAWeek(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);/*from w w  w .j ava  2s  .com*/

        c.add(Calendar.DAY_OF_MONTH, 7);

        Date ret = c.getTime();

        return ret;
    }
}

Related

  1. getDateAWeekAgo(Date date)
  2. getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek)
  3. getStartAndEndDatesForWeek(Calendar currentDate, Calendar startDate, Calendar endDate)
  4. getDaysOfWeekNames()
  5. getDaysOfWeekNames(Locale l, int len)