Here you can find the source of createCalendar(int year, int month, int date)
public static Calendar createCalendar(int year, int month, int date)
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static Calendar createCalendar(int year, int month, int date) { GregorianCalendar calendar = new GregorianCalendar(); calendar.set(year, month - 1, date); return calendar; }/*from w w w .j av a2 s .c o m*/ public static Calendar createCalendar(int year, int month, int date, int hour, int minute) { GregorianCalendar calendar = new GregorianCalendar(); calendar.set(year, month - 1, date, hour, minute); return calendar; } public static Calendar createCalendar(int year, int month, int date, int hour, int minute, int second) { GregorianCalendar calendar = new GregorianCalendar(); calendar.set(year, month - 1, date, hour, minute, second); return calendar; } }