Re: Re: How to add 2 years to todays date ?

From: Date: Mon, 18 Mar 2002 09:21:12 +0000
Subject: Re: Re: How to add 2 years to todays date ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-88899@lists.php.net to get a copy of this message
Hi A variation echo date("d/m/Y",strtotime("+2 years")) Tom At 06:29 PM 18/03/2002, Martin Schichl wrote:
At 10:19 18.03.02 +0200, "Andrey Hristov" <ahristov@icygen.com> wrote: $your_timestamp+=gmmktime(0,0,0,1,1,1972); Try: $your_timestamp = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),(date("Y")+2)); Is there anything why this would not work? Martin ----------------------------------------------------------------- Dipl.-Ing. Martin Schichl SC&C Software, Communication & Consulting GmbH & Co KEG Grottenhofstr. 3, A-8053 Graz Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234 mschichl@scc.co.at, http://scc.co.at -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#88899) next »