joi-date

Extensions for advance date rules.

Latest Version: 2.0.1
Installation:

npm: npm install @joi/date

yarn: yarn add @joi/date

Module Status:
Version License Node Dependencies Travis End of Life
2.0.1
joi logo github logo
BSD 12 Dependency Status Build Status

Usage

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

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