Re: date

From: Date: Sun, 01 Feb 2004 08:05:40 +0000
Subject: Re: date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178321@lists.php.net to get a copy of this message
date('Y-m-d', time()- 60*60*24); You could also use mktime. Regards, Lucian "Madcat" <reaper-one@gmx.net> wrote in message news:20040219202248.44067.qmail@pb1.pair.com... > 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 (#178321) next »