Java Day End getEndDate()

Here you can find the source of getEndDate()

Description

Gets the end date.

License

Open Source License

Return

the end date

Declaration

public static Calendar getEndDate() 

Method Source Code

//package com.java2s;
/*   Copyright (c) 2012 Zuora, Inc.
 *
 *   Permission is hereby granted, free of charge, to any person obtaining a copy of 
 *   this software and associated documentation files (the "Software"), to use copy, 
 *   modify, merge, publish the Software and to distribute, and sublicense copies of 
 *   the Software, provided no fee is charged for the Software.  In addition the
 *   rights specified above are conditioned upon the following:
 *
 *   The above copyright notice and this permission notice shall be included in all
 *   copies or substantial portions of the Software.
 *
 *   Zuora, Inc. or any other trademarks of Zuora, Inc.  may not be used to endorse
 *   or promote products derived from this Software without specific prior written
 *   permission from Zuora, Inc./*from   ww w  . j a v a 2  s .  c om*/
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *   FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
 *   ZUORA, INC. BE LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES
 *   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 *   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 *   ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 *   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

import java.util.Calendar;

public class Main {
    /**
     * Gets the end date.
     * 
     * @return the end date
     */
    public static Calendar getEndDate() {
        Calendar calendarEndDate = Calendar.getInstance();
        calendarEndDate.add(Calendar.YEAR, 1);
        return calendarEndDate;
    }
}

Related

  1. getDateList(Date begin, Date end)
  2. getDatesBetweenTwoDate(Date beginDate, Date endDate)
  3. getDateTimeString(boolean appendMillis)
  4. getDefaultEndDateForLogQuery()
  5. getDistDates(Date startDate, Date endDate)
  6. getEndDate(Date beginDate, int resolution)
  7. getEndDate(Date date)
  8. getEndDate(Date startDate)
  9. getEndDate(int useMonth)