CGI::ValidOp::Check::date(3pm)

CGI::ValidOp::Check::date3pm

Cgi::validop::check module to check if input looks like a date.

Overview

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.

Releases

Unchanged in 3 releases since Debian 6.0 (Squeeze).

  1. 6.0–8

Author

Randall Hansen <[email protected]> Joshua Partlow <[email protected]>

From libcgi-validop-perl 0.56-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.