Skip to content

ensure date does not occur in the past #407

@ArnoldZokas

Description

@ArnoldZokas

I want to validate input date to ensure it does not occur in the past.

Something like this...

var schema = Joi.date().min(function() { return moment().utc().toDate(); });

Is there already a way to achieve this?

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions