This is a very high demand trick, what you need is to print a date but this date must be some days in the past, maybe 2 or 3 days ago. There is a powerful command for that, let me show you the command and then we'll talk a little more about it.
What we are doing here is really simple. We're displaying a PHP date, off course, with a customized format 'F j, Y' this will print something like 'July 25, 2008'. The tricky part comes with the formula for calculating the date, if you missed it this is the formula:
time() is current time, - 3 are the days in the past we need our date, but why days? Because (60 * 60 * 24). If you think a bit, this is the formula for calculating how many seconds a day has: 60 seconds multiplied by 60 minutes multiplied by 24 hours a day equals 86,400 seconds. You got it? Very easy, right?
So what portion of the formula are you going to change to display a date 5 days in the past? Right, replace -3 by - 5.
But if you need a date in the future? Right, don't subtract just add, replace - 5 by + 5. That's it.












