Here you can find the source of getNextMonthFirstDate(java.sql.Date date)
static public java.sql.Date getNextMonthFirstDate(java.sql.Date date) throws ParseException
//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()); } }