code: public Date createDate(int month, int day, int year, int hour, int minute, 
                             int second, int millisecond) {
          
          GregorianCalendar gc = new GregorianCalendar();
  
          gc.clear();
          gc.set(Calendar.MONTH, month-1);
          gc.set(Calendar.DAY_OF_MONTH, day);
          gc.set(Calendar.YEAR, year);
          gc.set(Calendar.HOUR_OF_DAY, hour);
          gc.set(Calendar.MINUTE, minute);
          gc.set(Calendar.SECOND, second);
          gc.set(Calendar.MILLISECOND, millisecond);
          return gc.getTime();
      }
docs: Create a date from the given data.
  
  @param month The month (1-12)
  @param day The day (1-31)
  @param year The year (4-digit)
  @param hour The hour (0-23)
  @param minute The minutes (0-59)
  @param second The seconds (0-59)
  @param millisecond The milliseconds (0-999)
  
  @return The {@link Date} instance for the given date
  
  @throws NumberFormatException if the values are invalid numbers