Following is a solution...

$now = getdate();
$today = date("d-m-Y");
$yesterday =
echo("Today is " . $today . "and yesterday was " . $yesterday);

"Harry Lau" <[EMAIL PROTECTED]> wrote in message
> 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?
> Thank you.

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to