in reply to POSIX strftime

Nothing to do with POSIX. you just need to work out how to get the correct date out of localtime.

use constant DAY => 60 * 60 * 24; use POSIX 'strftime'; print strftime('%Y%m%d', localtime(time - (14 * DAY)));
--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg