Tanggal Lahir Validasi di 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