joi-date

Extensions for advance date rules.

Latest Version: 2.0.1
hapi-family
Installation:

npm: npm install @hapi/joi-date

yarn: yarn add @hapi/joi-date

Module Status:
Version License Node Dependencies Travis End of Life
2.0.1
hapi helmet github logo
BSD 12, 10, 8 Dependency Status Build Status

Usage

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

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