Here you can find the source of date(int year, int month, int date)
public static Date date(int year, int month, int date)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date date(int year, int month, int date) { Calendar working = GregorianCalendar.getInstance(); working.set(year, month, date, 0, 0, 1); return working.getTime(); }//w w w . ja va 2s .com }