### Question:
DateUtils { public static Date createDate(int year, int month, int day){ final Calendar c = Calendar.getInstance(); c.setLenient(false); c.set(Calendar.YEAR, year); c.set(Calendar.MONTH, month -1); c.set(Calendar.DAY_OF_MONTH, day); c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); return c.getTime(); }  static String formatYYYYMMddHHmmss(Date date); static Date parserYYYYMMddHHmmss(String dateStr); static Date createDate(int year, int month, int day); static Date createDate(int year, int month, int day, int hh, int mm, int ss ); static boolean isSameDay(final Date date1, final Date date2); static boolean isSameDay(final Calendar cal1, final Calendar cal2); static Date addYears(final Date date, final int amount); static Date addMonths(final Date date, final int amount); static Date addWeeks(final Date date, final int amount); static Date addDays(final Date date, final int amount); static Date addHours(final Date date, final int amount); static Date addMinutes(final Date date, final int amount); static Date addSeconds(final Date date, final int amount); static Date addMilliseconds(final Date date, final int amount); static Date setYears(final Date date, final int amount); static Date setMonths(final Date date, final int amount); static Date setDays(final Date date, final int amount); static Date setHours(final Date date, final int amount); static Date setMinutes(final Date date, final int amount); static Date setSeconds(final Date date, final int amount); static Date setMilliseconds(final Date date, final int amount);  }### Answer:
@Test public void createDate() throws ParseException { System.out.println(DateUtils.createDate(2018,11,12)); System.out.println(DateUtils.createDate(2018,11,12, 23, 9, 0)); }