Re: Need help on increment date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It works for me too.

I tell you two things,
a) make sure there is a space after +1 day. So it should look like "+1 day
". This ensures that the unix time is not concatenated with "day".
b) calling strtotime 2 times is not a great solution. You can all it once
only.  Like this,

    $date = strtotime <http://www.php.net/strtotime>("+1 day 2008-02-28");

    // better to call this, as the order is quite logical

    $date = strtotime <http://www.php.net/strtotime>("2008-02-28 +1 day");

-- 
Shiplu.Mokadd.im
ImgSign.com | A dynamic signature machine
Innovation distinguishes between follower and leader

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux