in reply to Getting previous dates from the current date

Hi.

In another your thread <url> http://www.perlmonks.org/?node_id=443499 </url> I gave few function which you can use for this task also
my $daysBack = 14; printf "%04d-%02d-%02d", timenow( time() - $daysBack * 86400 );
Vlad