I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was the 16th of July 2010.
Can anybody help?
I normally use something like this in perl
use Time::Local;
$back_time = (time() - (1*86400));
Is there a way to replace time() which is the current date with any date I choose?