You could use new GregorianCalendar(theYear, theMonth, theDay).getTime():
public GregorianCalendar(int year, int month, int dayOfMonth)Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.
You could use new GregorianCalendar(theYear, theMonth, theDay).getTime():
public GregorianCalendar(int year, int month, int dayOfMonth)Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.