Java Calendar Create getCalendar(Calendar cal, int relativeDay)

Here you can find the source of getCalendar(Calendar cal, int relativeDay)

Description

get Calendar

License

Open Source License

Declaration

public static Calendar getCalendar(Calendar cal, int relativeDay) 

Method Source Code

//package com.java2s;
/*// ww  w . ja v a 2 s  . c om
 * 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 getCalendar(Calendar cal, int relativeDay) {
        cal.add(Calendar.DATE, relativeDay);
        return cal;
    }
}

Related

  1. getCalendar()
  2. getCalendar()
  3. getCalendar()
  4. getCalendar(boolean skipConversion)
  5. getCalendar(boolean skipConversion)
  6. getCalendar(final Date dateAndTime)
  7. getCalendar(final long timeInMillis)
  8. getCalendar(final String isodate)
  9. getCalendar(int d, int m, int y)