joi-date

Extensions for advance date rules.
Latest Version: 2.1.1
Installation:

npm: npm install @joi/date

yarn: yarn add @joi/date

Module Status:
Version License Node
2.1.1
joi logo github logo
BSD 14, 16, 18

Usage

const Joi = require('joi')
    .extend(require('@joi/date'));

const schema = Joi.date().format('YYYY-MM-DD').utc();