note 57407 deleted from function.date by derick

From: Date: Sun, 15 Jan 2006 12:40:29 +0000
Subject: note 57407 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101821@lists.php.net to get a copy of this message
Note Submitter: john at ellingsworth dot org ---- In response to the recommendation from Liam regarding adding days to a date (which is quite handy): To maintain the format suggested at the top of your code, the $pay_date needs to be formatted using date() & mktime(): $pay_date = date("d - m - Y",mktime(0,0,0,$month,$final,$year)); and: $pay_date = date("d - m - Y",mktime(0,0,0,$month,$next_term,$year)); This keeps the leading zero in your days and months.

« previous php.notes (#101821) next »