Re: Any easy way of finding "yesterday"...?

From: Date: Tue, 13 Nov 2001 10:02:52 +0000
Subject: Re: Any easy way of finding "yesterday"...?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74405@lists.php.net to get a copy of this message
l_harry@hotmail.com (Harry Lau) wrote: > It is easy to use the function getDate() to obtain the date of today. > But instead of writing plenty of conditions, > is there any easy way to get the date of yesterday? echo date("m-d-Y", mktime(0,0,0,date("n"), date("d")-1, date("Y"))); -- Henrik Hansen

« previous php.general (#74405) next »