use strict; use warnings; use DateTime; my $time = DateTime->new( month => 1, day => 21, year => 2008); $time->add( days => 45 ); print _option( $time->mdy(q{/}) ); for (1..45) { $time->subtract( days => 1 ); print _option( $time->mdy(q{/}) ); } sub _option { my $time = shift; return qq{<option value="$time">$time</option>\n} }
In reply to Re: Getting the Latest Date Issue
by Herkum
in thread Getting the Latest Date Issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |