package Class::CGI::DateTime; use base 'Class::CGI::Handler'; use warnings; use strict; use DateTime; =head1 NAME Class::CGI::DateTime - Fetch DateTime objects directly from your forms. =head1 VERSION Version 0.02 =cut our $VERSION = '0.02'; =head1 SYNOPSIS use Class::CGI handlers => { date => 'Class::CGI::DateTime', order_date => 'Class::CGI::DateTime', }; my $cgi = Class::CGI->new; my $date = $cgi->param('date'); my $order_date = $cgi->param('order_date'); if ( my %errors = $cgi->errors ) { ... } =head1 DESCRIPTION A common problem with Web programming is handling dates correctly. This C handler attempts to do that for you in a standard way by allowing you to have separate day, month and year dropdowns but request a "date" parameter and get the correct object back, safely validated and untainted. Multiple dates may be used in a single form and you can even specify hours, minutes, timezones, and so on. =head2 Basic Usage If you have a form with C<<