You are here: Re: date arithmetic « All PHP « IT news, forums, messages
Re: date arithmetic

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация