date

From: Date: Thu, 19 Feb 2004 20:22:55 +0000
Subject: date
Groups: php.general 
Request: Send a blank email to php-general+get-178292@lists.php.net to get a copy of this message
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 regards

« previous php.general (#178292) next »