Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date makeDate(int year, int month, int day) { Calendar cal = Calendar.getInstance(); cal.clear(); cal.set(year, month - 1, day, 0, 0, 0); return cal.getTime(); } }