Here you can find the source of getDate(int day, int month, int year)
private static Date getDate(int day, int month, int year)
//package com.java2s; import java.util.*; import static java.util.Calendar.*; public class Main { private static Date getDate(int day, int month, int year) { return getCalendar(day, month, year).getTime(); }//from w ww. j a va2 s. c o m private static Calendar getCalendar(int day, int month, int year) { Calendar cal = getInstance(new SimpleTimeZone(0, "GMT")); cal.clear(); cal.set(YEAR, year); cal.set(MONTH, month); cal.set(DAY_OF_MONTH, day); return cal; } }