Posted by Kim Andrι Akerψ on 11/14/06 15:25
laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using PHP 4.4.4. If I have a date of the form
>
> $curDate = date("Y-m-d");
>
> How do I get the date 6 months from this date?
>
> Thanks, - Dave
You might try:
$oldDate = date("Y-m-d", strtotime("6 months ago"));
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|