in reply to How to get after 4 and 5 days date from today date

I use DateTime.
my $dt = DateTime->today( time_zone => 'local' ); $dt->add( days => 5 ); print $dt->ymd(), "\n"; $dt->add( days => 4 ); print $dt->ymd(), "\n";

Replies are listed 'Best First'.
Re^2: How to get after 4 and 5 days date from today date
by Anonymous Monk on Feb 17, 2011 at 10:10 UTC

    I prefer this.

    Check for Date::Time documentation for some more methods.