Skip to content

Latest commit

 

History

History
executable file
·
21 lines (14 loc) · 433 Bytes

API.md

File metadata and controls

executable file
·
21 lines (14 loc) · 433 Bytes

1.0.2 API Reference

Rules

date.format(format)

Specifies the allowed date format:

  • format - string or array of strings that follow the moment.js format.
const schema = Joi.date().format(['YYYY/MM/DD', 'DD-MM-YYYY']);