The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FormValidator::Lite::Constraint::Date - date constraints

DESCRIPTION

This module provides date constraints.

CONSTRAINTS

DATE
$validator = FormValidator::Lite->new(CGI->new("date=2009-09-02"));
$validator->check(
    date => ['DATE']
);
# or
$validator = FormValidator::Lite->new(CGI->new("y=2009&m=09&d=02"));
$validator->check(
    {date => [qw/y m d/]} => ['DATE']
);

This constraints checks the parameter is valid date or not.