public static <T> boolean getDateParameter(T paramCntr, WebFieldDef fieldDef,
            boolean required, Date defValue,
            StringBuilder sBuffer,
            ProcessResult result) {
        if (!getStringParamValue(paramCntr, fieldDef,
                required, null, sBuffer, result)) {
            return result.isSuccess();
        }
        String paramValue = (String) result.getRetData();
        if (paramValue == null) {
            result.setSuccResult(defValue);
            return result.isSuccess();
        }
        Date date = DateTimeConvertUtils.yyyyMMddHHmmss2date(paramValue);
        if (date == null) {
            result.setFailResult(sBuffer.append("Parameter ").append(fieldDef.name)
                    .append("'s value ").append(paramValue)
                    .append(" parse error, required value format is ")
                    .append(DateTimeConvertUtils.PAT_YYYYMMDDHHMMSS).toString());
            sBuffer.delete(0, sBuffer.length());
        } else {
            result.setSuccResult(date);
        }
        return result.isSuccess();
    }
Parse the parameter value from an string value to Date value

@param paramCntr   parameter container object
@param fieldDef    the parameter field definition
@param required    a boolean value represent whether the parameter is must required
@param defValue    a default value returned if failed to parse value from the given object
@param sBuffer     string buffer
@param result      process result
@return valid result for the parameter value
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/utils/WebParameterUtils.java