mktimestamp help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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')));

$expiredate = date("Y-m-d",mktime(0,0,0,date('m'),date('d'),date('Y')) + 2592000); the 2592000 timestamp for 1 month.

how can i compute the timestamp for 6 months or maybe 1 year or more.

Thank you

Regards,
Ron

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux