For example if I want to input activation date(or credit that determines date of expiration) of my prepaid cell phone card, and based on that and current date php script calculates what is the expiration date. example: 50$ equals 100 days of my prepaid cell card,and based on that and the current date, what is the date when my prepaid card expires? Any ideas are welcome. Thanks.
Straight from the PHP Manual's Date page. $nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1); PHP:
Oops, forgot to mention that in the example above it will leave you with a date that is exactly one year from the current date. The example and page cited should give you the info to customize it to your needs.