Here you can find the source of createCalendar(final int year, final int month, final int day)
public static Calendar createCalendar(final int year, final int month, final int day)
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar createCalendar(final int year, final int month, final int day) { final Calendar dateTime = Calendar.getInstance(); dateTime.clear();//from w w w. j a v a 2 s . c om dateTime.set(Calendar.YEAR, year); dateTime.set(Calendar.MONTH, month); dateTime.set(Calendar.DAY_OF_MONTH, day); return dateTime; } }