Input::Validator::Constraint::Date - Date constraint
$validator->field('date')->constraint('date'); $validator->field('date')->constraint('date', split => '/');
Checks whether a value is a valid date. Date is a string with a separator (/ by default), that is splitted into year, month, day sequence and then validated.
/
year, month, day
is_valid
Validates the constraint.
Input::Validator, Input::Constraint
To install Input::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Input::Validator
CPAN shell
perl -MCPAN -e shell install Input::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.