Java Date to Month getNextMonthFirstDay(Date date)

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

Description

get Next Month First Day

License

Open Source License

Declaration

public static Date getNextMonthFirstDay(Date date) 

Method Source Code

//package com.java2s;

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

public class Main {

    public static Date getNextMonthFirstDay(Date date) {
        Calendar a = Calendar.getInstance();
        a.setTime(date);//  www  . j a  v a2s  . c  o  m
        a.add(Calendar.MONTH, 1);
        a.set(Calendar.DAY_OF_MONTH, 1);
        a.set(Calendar.HOUR_OF_DAY, 0);
        a.set(Calendar.MINUTE, 0);
        a.set(Calendar.SECOND, 0);
        return a.getTime();
    }
}

Related

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