code: protected Calendar parseDate(String strDate, String strTime) {
      Calendar retval = Calendar.getInstance();
      // set date
      String[] fields = strDate.split("-");
      retval.set(Calendar.YEAR, Integer.parseInt(fields[0]));
      retval.set(Calendar.MONTH, Integer.parseInt(fields[1]));
      retval.set(Calendar.DATE, Integer.parseInt(fields[2]));
      // set time
      fields = strTime.split(":");
      retval.set(Calendar.HOUR_OF_DAY, Integer.parseInt(fields[0]));
      retval.set(Calendar.MINUTE, Integer.parseInt(fields[1]));
      retval.set(Calendar.SECOND, Integer.parseInt(fields[2]));
      return retval;
    }
docs: Parse a date found in the Hadoop log.
  
  @return a Calendar representing the date