Here you can find the source of createDate(int year, int month, int date)
public static Date createDate(int year, int month, int date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date createDate(int year, int month, int date) { Calendar calendar = Calendar.getInstance(); calendar.set(year, month, date); return calendar.getTime(); }/*from w w w. j a v a2s .c om*/ }