Java SQL Date Month getNextMonthFirstDate(java.sql.Date date)

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

Description

get Next Month First Date

License

Open Source License

Declaration

static public java.sql.Date getNextMonthFirstDate(java.sql.Date date) throws ParseException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;

import java.util.Calendar;

import java.util.GregorianCalendar;

public class Main {
    static public java.sql.Date getNextMonthFirstDate(java.sql.Date date) throws ParseException {
        Calendar scalendar = new GregorianCalendar();
        scalendar.setTime(date);//from w ww . ja  va  2 s.  c  o m
        scalendar.add(Calendar.MONTH, 1);
        scalendar.set(Calendar.DATE, 1);
        return new java.sql.Date(scalendar.getTime().getTime());
    }
}

Related

  1. getMonthDate(Date myDate, int month)
  2. getMonthDays(java.sql.Date date)
  3. getMonthFromYMD(Date ymd)
  4. getMonthStart(Date stamp)
  5. getMulmonthday(String startdate, String enddate)
  6. getNextMonthStartDate(Date date)
  7. getSqlDate(final int iDay, final int iMonth, final int iYear)
  8. getSqlDate(int year, int month, int day)
  9. newDate(Integer year, Integer month, Integer day)