Re: Date
| From: | RIVES Sergio | Date: | Fri, 08 Mar 2002 10:39:37 +0000 |
| Subject: | Re: Date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87752@lists.php.net to get a copy of this message | ||
Hi
try the function getdate()
check this page for examples :
http://www.php.net/manual/en/function.getdate.php
i hope it could help you.
Yogesh a écrit :
> Hi! can someone please tell me how to get the current date? Well, the thing is, i want to
> manage a subscription, so, in my database, i have a field called date_registered which will be
> assigned to the date that any user registers... so, i have to capture that date value which can vary
> depending on when a user registers.
>
> So, let's say $date1 will be assigned to that value.
>
> Now, how can i perform addition with the date so that i mail that user 3 months after the date
> he registered that his registration has expired?
>
> Therefore, i'll be having 2 dates
>
> $date1 = "the date the user registers";
> $date2 = $date1 + 3months
>
> can someone please help me with that?
>
> Thanks and regards,
> Yogesh Mahadnac