Here you can find the source of createDate(int year, int month, int dayOfMonth)
public static Date createDate(int year, int month, int dayOfMonth)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static final Calendar CALENDAR = Calendar.getInstance(); public static Date createDate(int year, int month, int dayOfMonth) { CALENDAR.set(Calendar.YEAR, year); CALENDAR.set(Calendar.MONTH, month); CALENDAR.set(Calendar.DAY_OF_MONTH, dayOfMonth); return CALENDAR.getTime(); }/* www .jav a 2 s .com*/ }