Daisuke Murase > FormValidator-Lite-0.15 > FormValidator::Lite::Constraint::Date

Download:
FormValidator-Lite-0.15.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: FormValidator-Lite-0.37

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.

syntax highlighting: