Date de validation de naissance dans YUP

Yup.string()
      .required("DOB is Required")
      .test("DOB", "Please choose a valid date of birth", (value) => {
        return moment().diff(moment(value), "years") >= 10;
      }),
ashirbad-panigrahi