Re: Adding Time
| From: | Gary | Date: | Sat, 27 Mar 2010 22:52:08 +0000 |
| Subject: | Re: Adding Time | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303546@lists.php.net to get a copy of this message | ||
Perfect, thank you very much for your help!
Gary
"Yousif Masoud" <yousif.masoud@gmail.com> wrote in message
news:x2tbffe24ad1003271548l65cb6e65qd8f35ae0636eb2b@mail.gmail.com...
> On Sat, Mar 27, 2010 at 10:26 PM, Gary <gwpaul@ptd.net> wrote:
>
>> [...]
>>
>
> $end_date=date('m-d-Y',strtotime('$mth')) + date('m-d-Y',
>> strtotime('$pay_date'));
>>
>> [...]
>
>
> Try changing above to:
>
> $end_date = date('m-d-Y',strtotime("$pay_date + $mth months"));
>
> I think your mail client took it out of the add_date function.
>
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4978 (20100326) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
__________ Information from ESET Smart Security, version of virus signature database 4978 (20100326)
__________
The message was checked by ESET Smart Security.
http://www.eset.com