Here you can find the source of createDate(int day, int month, int year)
public static Date createDate(int day, int month, int year)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.sql.Date; public class Main { public static Date createDate(int day, int month, int year) { Calendar cDate = Calendar.getInstance(); cDate.set(Calendar.DATE, day); cDate.set(Calendar.MONTH, month); cDate.set(Calendar.YEAR, year); return new Date(cDate.getTimeInMillis()); }//from w ww . java 2 s . com }