import java.util.Calendar; import java.util.GregorianCalendar; public class MainClass { public static void main(String[] args) { Calendar calendar = new GregorianCalendar(2000, // year 10, // month 1); // day of month java.sql.Date date = new java.sql.Date(calendar.getTimeInMillis()); } }