Here you can find the source of date(int y, int m, int d)
public static Date date(int y, int m, int d)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date date(int y, int m, int d) { Calendar c = Calendar.getInstance(); c.set(Calendar.YEAR, y + 1900); c.set(Calendar.MONTH, m); c.set(Calendar.DAY_OF_MONTH, d); return c.getTime(); }/*from ww w . j a v a 2 s .c o m*/ }