Re: Need help on increment date

From: Date: Thu, 24 May 2012 09:08:21 +0000
Subject: Re: Need help on increment date
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-317978@lists.php.net to get a copy of this message
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

« previous php.general (#317978) next »