Java Calendar Day getNextDay(Calendar cal)

Here you can find the source of getNextDay(Calendar cal)

Description

get Next Day

License

Open Source License

Declaration

public static int getNextDay(Calendar cal) 

Method Source Code

//package com.java2s;
/** Exhibit A - UIRF Open-source Based Public Software License.
* 
* The contents of this file are subject to the UIRF Open-source Based
* Public Software License(the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
* openelis.uhl.uiowa.edu//from  ww  w .ja va 2 s .  com
* 
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
* 
* The Original Code is OpenELIS code.
* 
* The Initial Developer of the Original Code is The University of Iowa.
* Portions created by The University of Iowa are Copyright 2006-2008. All
* Rights Reserved.
* 
* Contributor(s): ______________________________________.
* 
* Alternatively, the contents of this file marked
* "Separately-Licensed" may be used under the terms of a UIRF Software
* license ("UIRF Software License"), in which case the provisions of a
* UIRF Software License are applicable instead of those above. 
*/

import java.util.Calendar;

public class Main {
    public static int getNextDay(Calendar cal) {
        cal.add(Calendar.DATE, 1);
        return cal.get(Calendar.DATE);
    }
}

Related

  1. getGregorianDay(Calendar cal)
  2. getJulianDay(Calendar currentDate)
  3. getLastDay(Date targetDate, Calendar cal)
  4. getLastDayOfPreviousPeriod(int startDayOfPeriod, Calendar cal)
  5. getMonday(Calendar calendar)
  6. getNextDay(Calendar calendar, int day)
  7. getNextMonday(Calendar date)
  8. getNoonOfDay(Date day, Calendar cal)
  9. getOneDayLaterCalendar(Date date)