++ed by:
TOMITA NUKOSUKE

2 PAUSE users
2 non-PAUSE users.

MATSUNO★…Tokuhiro
and 18 contributors

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.