Дата проверки рождения в 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