Form form validation of antd

how can I make the following input less than or equal to the above input?

Mar.10,2021

is verified by validator .


add onChange events to input and get their values to judge.


< FormItem

      labelCol={{
            span: 5,
        }}
      wrapperCol={{
            span: 15,
        }}
      label="A"
    >
      {form.getFieldDecorator('code', {
        rules: [{
          pattern: /^[0-9a-zA-Z]*$/g,
          message: '@@@@@@@@',
        }, {
          required: true,
          message: '@@@@@',
        }, {
          validator: this.codeExists,
        }],
      })(
        <Input />
    )}
    </FormItem>
    
    
Menu