Here you can find the source of getFutureTime(int month)
public static Timestamp getFutureTime(int month)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Timestamp getFutureTime(int month) { Calendar c = Calendar.getInstance(); c.add(Calendar.MONTH, month); return new Timestamp(c.getTimeInMillis()); }// www .j a v a 2 s . c o m }