Java Month Next nextMonthDateTime(Date date, int month)

Here you can find the source of nextMonthDateTime(Date date, int month)

Description

next Month Date Time

License

Open Source License

Declaration

public static Date nextMonthDateTime(Date date, int month) 

Method Source Code

//package com.java2s;
/*/*from www  .j  ava  2 s  . c  o  m*/
 * Copyright (C) 2010 Viettel Telecom. All rights reserved.
 * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date nextMonthDateTime(Date date, int month) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(Calendar.MONTH, month);
        return calendar.getTime();
    }
}

Related

  1. nextMonth(Date d)
  2. nextMonth(Date date)
  3. nextMonth(Date date, int month)
  4. nextMonth(Date then)
  5. nextMonth(final Date date)
  6. nextMonthStart(Date period)