in reply to substract from actual date 7 days and printout in month.days.hours.min.year
Use one of the modules available on CPAN, some examples are Date::Calc, Date::Manip, or DateTime.
use DateTime; print DateTime->now->add(days=>-7) ->strftime('%m%d%H%M%Y'), "\n"; __END__ 031614272015
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: substract from actual date 7 days and printout in month.days.hours.min.year
by nicopelle (Acolyte) on Mar 23, 2015 at 10:36 UTC |