Java Calendar Add addDayToCalendar(Calendar calendar, int day)

Here you can find the source of addDayToCalendar(Calendar calendar, int day)

Description

add Day To Calendar

License

Open Source License

Declaration

public static Calendar addDayToCalendar(Calendar calendar, int day) 

Method Source Code

//package com.java2s;
/*/*from ww w .  ja va2s.  c om*/
 * @ (#) CalendarUtils.java
 * 
 * Copyright (c) 2010 ClickDiagnostics Inc. All Rights Reserved. This software is the
 * confidential and proprietary information of ClickDiagnostics ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with ClickDiagnostics.
 */

import java.util.Calendar;

public class Main {
    public static Calendar addDayToCalendar(Calendar calendar, int day) {
        calendar.add(Calendar.DAY_OF_MONTH, day);

        return calendar;
    }
}

Related

  1. addDayOffset(final Calendar date, long offset)
  2. addDays(Calendar aTarget, int aAddDays)
  3. addDays(Calendar calendar, int days)
  4. addDays(Calendar src, int days)
  5. addDays(final int days, final Calendar from)
  6. addLocaleToCalendar(Calendar date, String locale)
  7. addMilliseconds(Calendar calendar, Long amount)
  8. addMonth(Calendar cal, int period)
  9. addMonthDayToCal(Calendar cal, int month, int day)