Java Date to Month getNextMonthFirstDate(Date date)

Here you can find the source of getNextMonthFirstDate(Date date)

Description

get Next Month First Date

License

Apache License

Declaration

public static Date getNextMonthFirstDate(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

import java.util.Date;

public class Main {
    public final static Calendar cal = Calendar.getInstance();

    public static Date getNextMonthFirstDate(Date date) {
        Date tmpdate = getMonthFirstDate(date);
        cal.setTime(tmpdate);/* w  ww.j  a  v a  2 s .  com*/
        cal.add(Calendar.MONTH, 1);
        return new Date(cal.getTime().getTime());
    }

    public static Date getMonthFirstDate(Date date) {
        Date tmpdate = new Date(date.getTime());
        return tmpdate;
    }
}

Related

  1. getNextMonth(Date baseDate, int Month)
  2. getNextMonth(Date time)
  3. getNextMonth(long date)
  4. getNextMonthDate(Date appointDate)
  5. getNextMonthExtention(Date dt, Long n)
  6. getNextMonthFirstDay(Date date)
  7. getNextMonthPreviousDay(Date date, int month_num)
  8. getNextMonthsByStartDate(Date date, int month)
  9. month(Date date)