Re: [PHP-DB] mktimestamp help

2008-12-30 Thread Ron
Thanks i will try strtotime. Phpster wrote: $endDate = date('Y-m-d', strtotime("+6 months"); Should be close Bastien Sent from my iPod On Dec 30, 2008, at 8:43 PM, Ron wrote: Hi, I'm trying to do online subscription on my site. I need to determine the expirationdate of the subscripti

Re: [PHP-DB] mktimestamp help

2008-12-30 Thread Phpster
$endDate = date('Y-m-d', strtotime("+6 months"); Should be close Bastien Sent from my iPod On Dec 30, 2008, at 8:43 PM, Ron wrote: Hi, I'm trying to do online subscription on my site. I need to determine the expirationdate of the subscription, given the date today is the start of subsc

Re: [PHP-DB] mktimestamp help

2008-12-30 Thread Trullo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley Dukes wrote: > Try something like this: > > $subscriptionDate = date("Y-m-d",time()); // format time() timestamp > $sixMonthsLater = date("Y-m-d", mktime(0,0,0, date("m")+6, date("d"), > date("Y"))); //mktime +6 to month > > or even: > > $on

Re: [PHP-DB] mktimestamp help

2008-12-30 Thread Wesley Dukes
Try something like this: $subscriptionDate = date("Y-m-d",time()); // format time() timestamp $sixMonthsLater = date("Y-m-d", mktime(0,0,0, date("m")+6, date("d"), date("Y"))); //mktime +6 to month or even: $oneYearLater = date("Y-m-d", mktime(0,0,0, date("m"), date("d"), date("Y")+1)); //mktim

Re: [PHP-DB] mktimestamp help

2008-12-30 Thread Trullo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ron wrote: > Hi, > > I'm trying to do online subscription on my site. > > I need to determine the expirationdate of the subscription, given the > date today is the start of subscription and duration type of example 6 > months. > > $subscriptiondate

[PHP-DB] mktimestamp help

2008-12-30 Thread Ron
Hi, I'm trying to do online subscription on my site. I need to determine the expirationdate of the subscription, given the date today is the start of subscription and duration type of example 6 months. $subscriptiondate = date("Y-m-d",mktime(0,0,0,date('m'),date('d'),date('Y'))); $expired