title: Yup date validation + 1 day
body: <p>I have a form using formik / yup, and I'm validating dates against other dates in the form. I have a field for <code>expirationDate</code> that I want to be at a minimum <em>the day after</em> <code>enteredDate</code>, the day the form was entered.</p>
  <p>I currently have this, which works but validates against the <code>enteredDate</code>-- the problem is that if you set 06/21/21 as the entered date, it accepts 06/21/21 as the expiration date-- I need it to set 06/22/21 as the minimum date, or <code>enteredDate + 1 day</code>.</p>
  <pre><code>yup.date('Expiration Date')
      .nullable()
      .min(yup.ref('enteredDate'),
          ({ min }) =&gt; `Expiration Date needs to be after Entered Date`
      )
  </code></pre>
  <p>I've tried many variations of</p>
  <pre><code>yup.date('Expiration Date')
      .nullable()
      .min(yup.ref('enteredDate') ? daysjs(yup.ref('enteredDate').add(1, 'day') : null,
          ({ min }) =&gt; `Expiration Date needs to be after Entered Date`
      )
  </code></pre>
  <p>but the <code>yup.ref</code> doesn't seem to return a date object, since the error is <code>TypeError: The value of field could not be cast to a value that satisfies the schema type: &quot;date&quot;.</code></p>
  <p>How can I tell yup to use the next day?</p>