CGI::ValidOp::Check::date - CGI::ValidOp::Check module to check if input looks like a date.


CGI-ValidOp documentation  | view source Contained in the CGI-ValidOp distribution.

Index


NAME

Top

CGI::ValidOp::Check::date - CGI::ValidOp::Check module to check if input looks like a date.

DESCRIPTION

Top

iso

Checks for ISO 8601 compliance: YYYY-MM-DD. Returns date in compliant format, zero-padded if necessary.

american

Checks that the date is a standard American mm/dd/yyyy or mm-dd-yyyy date. Insists on 4 digit years. Leading zeros for month and day are optional.

Returns date in ISO format with leading zeros.

This allows the application to handle dates in a single, consistent format. The presentation layer can then concern itself with what format dates need to be displayed in.

general

Checks that the date is either iso or american format. Returns iso format.

AUTHOR

Top

Randall Hansen <legless@cpan.org> Joshua Partlow <jpartlow@opensourcery.com>

COPYRIGHT

Top


CGI-ValidOp documentation  | view source Contained in the CGI-ValidOp distribution.