code: public Timestamp parseTimestamp(String strValue) throws IllegalArgumentException {
          if (fmt != null) {
              Optional<Timestamp> parsed = tryParseWithFormat(strValue);
              if (parsed.isPresent()) {
                  return parsed.get();
              }
          }
  
          // Otherwise try default timestamp parsing
          return Timestamp.valueOf(strValue);
      }
docs: Parse the input string and return a timestamp value
  @param strValue
  @return
  @throws IllegalArgumentException if input string cannot be parsed into timestamp