code: private static Date string2Date(String date) {
          if (date == null) {
            return null;
          }
          int year = Integer.parseInt(date.substring(0, 2));
          int month = Integer.parseInt(date.substring(2, 4));
          int day = Integer.parseInt(date.substring(4, 6));
          int hour = Integer.parseInt(date.substring(6, 8));
          int minute = Integer.parseInt(date.substring(8, 10));
          int second = 0;
          if (date.length() >= 12){
              second = Integer.parseInt(date.substring(10, 12));
          }
          Calendar cal = Calendar.getInstance();
          cal.set(convertTwoDigitYear(year), month - 1, day, hour, minute, second);
          cal.set(Calendar.MILLISECOND, 0);
          return cal.getTime();
      }
docs: YYMMDDhhmm where:
  <ul>
  <li>YY = last two digits of the year (00-99)</li>
  <li>MM = month (01-12)</li>
  <li>DD = day (01-31)</li>
  <li>hh = hour (00-23)</li>
  <li>mm = minute (00-59)</li>
  </ul>
  
  Java format is (yyMMddHHmm).
  
  @param date in <tt>String</tt> format.
  @return
  @throws NumberFormatException if there is contains non number on
  <code>date</code> parameter.
  @throws IndexOutOfBoundsException if the date length in <tt>String</tt>
  format is less than 10.