Java Date Start getStartDayOfNextMonth(Date date)

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

Description

get Start Day Of Next Month

License

Open Source License

Declaration

public static Date getStartDayOfNextMonth(Date date) 

Method Source Code

//package com.java2s;

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

public class Main {

    public static Date getStartDayOfNextMonth(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);//from  w w  w.  ja  v  a  2s .  com
        c.add(Calendar.MONTH, 1);
        c.set(Calendar.DAY_OF_MONTH, 1);
        date = c.getTime();
        return date;
    }
}

Related

  1. getStartDate(Date date)
  2. getStartDate(String date)
  3. getStartDateOfCurrentSemester()
  4. getStartDateOfCurrMonth()
  5. getStartDay(Date date)
  6. getStartOfDate(final Date date)
  7. getStartOfDay(Date date)
  8. getStartOfDay(Date date)
  9. getStartOfDay(Date day)