in reply to Re^2: date as part of filename
in thread date as part of filename

Time::Piece is a core module, and should be able to parse (strptime), format (strftime), and subtract days from an arbitrary date.