>> how do i make php give me yesterday's date?
>>
>> i tried
>>
>> date("Y-m-d")-1
LC> date('Y-m-d', time()- 60*60*24);
LC> You could also use mktime.
Someone has already advised you look at strtotime, but just incase you
haven't here is one way you can use it:
$yesterdays_timestamp = strtotime("-1 day");
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

