Here you can find the source of getCurrentDate()
public static Calendar getCurrentDate()
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar getCurrentDate() { Calendar currDate = Calendar.getInstance(); currDate.setTimeInMillis(System.currentTimeMillis()); currDate.set(Calendar.MONTH, currDate.get(Calendar.MONTH) + 1); return currDate; }// ww w . ja va2 s . c om }