Here you can find the source of getCurrentCalendar()
public static Calendar getCurrentCalendar()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Main { public static Calendar getCurrentCalendar() { Date now = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); String hehe = dateFormat.format(now); System.out.println(hehe); Calendar c = Calendar.getInstance(); return c; }//from w w w .j a va 2 s.c om }