Java Calendar Day getNextMonday(Calendar date)

Here you can find the source of getNextMonday(Calendar date)

Description

get Next Monday

License

Apache License

Declaration

public static Calendar getNextMonday(Calendar date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {

    public static Calendar getNextMonday(Calendar date) {
        Calendar result = null;//from  w w w .  j a va2s.  co  m
        result = date;
        do {
            result = (Calendar) result.clone();
            result.add(Calendar.DATE, 1);
        } while (result.get(Calendar.DAY_OF_WEEK) != 2);
        return result;
    }
}

Related

  1. getLastDay(Date targetDate, Calendar cal)
  2. getLastDayOfPreviousPeriod(int startDayOfPeriod, Calendar cal)
  3. getMonday(Calendar calendar)
  4. getNextDay(Calendar cal)
  5. getNextDay(Calendar calendar, int day)
  6. getNoonOfDay(Date day, Calendar cal)
  7. getOneDayLaterCalendar(Date date)
  8. getPrincipalAfterCompoundingInterest( Calendar currentDate, Float principal, Integer depositPeriod, double interestPerDay, Integer compoundingInterval, Integer postingInterval)
  9. getRelativeCalendar(int offsetDays)