RE: [PHP] date

From: Date: Thu, 19 Feb 2004 20:32:27 +0000
Subject: RE: [PHP] date
Groups: php.general 
Request: Send a blank email to php-general+get-178293@lists.php.net to get a copy of this message
[snip] hi there how do i make php give me yesterday's date? i tried date("Y-m-d")-1 but if today would be the 1st of july (2004-07-01), yesterday would be 00. july (2004-07-00) according to that calculator. is there any way to make this one get it right? without any if-structures if possible [/snip] http://www.php.net/strtotime

« previous php.general (#178293) next »