http://qs321.pair.com?node_id=486126


in reply to Calculate date with days

Here's another approach using DateTime:
use strict; use warnings; use DateTime; my $dt = DateTime->new(year => '2005', month => '08', day => '24'); $dt->add(days => 10); print $dt->dmy('/'), "\n";
Dan Kubb, Perl Programmer