Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgi::validop::check::date(3pm) [debian man page]

CGI::ValidOp::Check::date(3pm)				User Contributed Perl Documentation			    CGI::ValidOp::Check::date(3pm)

NAME
CGI::ValidOp::Check::date - CGI::ValidOp::Check module to check if input looks like a date. DESCRIPTION
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
Randall Hansen <legless@cpan.org> Joshua Partlow <jpartlow@opensourcery.com> COPYRIGHT
Copyright (c) 2003-2006 Randall Hansen. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.10.1 2009-11-30 CGI::ValidOp::Check::date(3pm)

Check Out this Related Man Page

HTML::FormHandler::Field::Date(3pm)			User Contributed Perl Documentation		       HTML::FormHandler::Field::Date(3pm)

NAME
HTML::FormHandler::Field::Date - a date field with formats VERSION
version 0.40013 SUMMARY
This field may be used with the jQuery Datepicker plugin. You can specify the format for the date using jQuery formatDate strings or DateTime strftime formats. (Default format is format => '%Y-%m-%d'.) d - "%e" - day of month (no leading zero) dd - "%d" - day of month (two digit) o - "%{day_of_year}" - day of the year (no leading zeros) oo - "%j" - day of the year (three digit) D - "%a" - day name short DD - "%A" - day name long m - "%{day_of_month" - month of year (no leading zero) mm - "%m" - month of year (two digit) "%m" M - "%b" - month name short MM - "%B" - month name long y - "%y" - year (two digit) yy - "%Y" - year (four digit) @ - "%s" - Unix timestamp (ms since 01/01/1970) For example: has_field 'start_date' => ( type => 'Date', format => "dd/mm/y" ); or has_field 'start_date' => ( type => 'Date', format => "%d/%m/%y" ); You can also set 'date_end' and 'date_start' attributes for validation of the date range. Use iso_8601 formats for these dates ("yyyy-mm- dd"); has_field 'start_date' => ( type => 'Date', date_start => "2009-12-25" ); Customize error messages 'date_early' and 'date_late': has_field 'start_date' => ( type => 'Date, messages => { date_early => 'Pick a later date', date_late => 'Pick an earlier date', } ); If form has 'is_html5' flag active it will render <input type="date" ... /> instead of type="text" AUTHOR
FormHandler Contributors - see HTML::FormHandler COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 HTML::FormHandler::Field::Date(3pm)
Man Page