Posts: 256
Location: Auckland, New Zealand
|
Hey SlayersOtaku,
I am not sure what you're asking but the easiest way is to use strtotime.
For example, if I wanted to know what last Month is from today, I would do:
PHP Code:
<?php $lastMonth = strtotime('last Month'); echo date('Y-m-d', $lastMonth); ?>
and the results should be this year, last month, this day.
Alternatively this is the same as doing:
PHP Code:
$lastMonth = strtotime('-1 Month');
Maybe that's what you're after?
If it's not, then provide examples of what you've been trying so I can get an idea.
Cheers,
MC
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
Last edited by mastercomputers; 07-13-2006 at 12:32 AM..
|