hi,
  hey you are bang on target. It did solve my problem.

Thanks a lot,

Manoj

On Wed, 21 Aug 2002 [EMAIL PROTECTED] wrote :
>
>if you really just want yesterday, i use date("Y-m-d", time() -
86400);
>
>that way you'll get the correct info, no matter if it spans 
>weeks,
months,
>years etc....
>
>i realize there could be flaws with this b/c it just subtracts
24hours, but
>it works....
>
>
>
>                     "Manoj  Japher"
>                     <manojjapher@redif       To:
[EMAIL PROTECTED]
>                     fmail.com>               cc:
>                                              Subject:     
>[PHP-DB]
Date Subtraction
>                     08/21/2002 02:23
>                     PM
>                     Please respond to
>                     "Manoj  Japher"
>
>
>
>
>
>
>hi,
>   Is there any way I can get previous day's date, like we get
>current
>date by using getdate() or date() function. I mean is there 
>some
>in-built function in PHP which can subtract date to give me
>yesterday's date.
>   I am currently calculating it using some code, which I have
>written
>and it is very tirng and recursive to check for each possible
>case.
>
>   If someone has solved this before pls let me know.
>
>Thanks,
>
>Regards,
>
>Manoj
>
>
>'I have miles to go before I sleep, and promises to keep'
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>


'I have miles to go before I sleep, and promises to keep'

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to