note 36720 added to function.date

From: Date: Mon, 20 Oct 2003 10:35:15 +0000
Subject: note 36720 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-58927@lists.php.net to get a copy of this message
Modification of example 3. To get next year's date in the DATE format of MySQL. $nextyear = date ("Y-m-d",mktime (0,0,0,date("m"), date("d"), date("Y")+1)); Useful when you have annual subscription that expires one year after registration. ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36720 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36720&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36720&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58927) next »