Re: Add 1 Year to current date ?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Add 1 Year to current date ?

From: Chung Leong <chernyshevsky@hotmail.com>
Date: Fri Sep 23 2005 - 06:53:22 CEST

If you want to add a year to the current date, then add one to the
year. 2005 + 1 = 2006. It's not rocket science.

Example:

extract(getdate);
$year = $year + 1;
echo "$year-$month-$mday";
Received on Tue Oct 18 02:27:05 2005