Posted by wesley on 12/06/06 09:16
Hi I have tried to use some of the functions you guys suggested. Some
work fine but others like strtotime return results that i dont think
are correct: This is what i have tried:
echo strtotime('+ 1 month');
The result is 1168074894
I have also found another function to modify the date:
$date = new DateTime("2006-12-12");
$date->modify("+1 day");
echo $date->format("Y-m-d");
But this returns nothing. "DateTime" is not being recorgnized. I have
php version 5.0.4. This function is supposed to be supported. Any ideas
as to why this does not work.
Thank you for all the responses
Wes
[Back to original message]
|