npm: npm install @joi/date
npm install @joi/date
yarn: yarn add @joi/date
yarn add @joi/date
const Joi = require('joi') .extend(require('@joi/date')); const schema = Joi.date().format('YYYY-MM-DD').utc();