Here you can find the source of newDate(int year, int month, int day)
@SuppressWarnings("deprecation") public static final Date newDate(int year, int month, int day)
//package com.java2s; import java.util.*; public class Main { @SuppressWarnings("deprecation") public static final Date newDate(int year, int month, int day) { return new Date(year - 1900, month - 1, day); }//from ww w. java 2 s. c o m }