code: public Timestamp parse(String source) throws ParseException {
          ParsePosition pos = new ParsePosition(0);
          Timestamp result = parse(source, pos);
          if (pos.getIndex() == 0)
              throw new ParseException("Unparseable date: \"" + source + "\"" ,
                  pos.getErrorIndex());
          return result;
      }
docs: Parses a String and converts it to a Timestamp.
  
  @param source the string to parse
  @return the parsed object
  @throws ParseException if the string does not match the pattern