note 99431 deleted from function.date-add by danbrown

From: Date: Tue, 17 Aug 2010 16:15:59 +0000
Subject: note 99431 deleted from function.date-add by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171768@lists.php.net to get a copy of this message
Note Submitter: ahk007 at dreamwiz dot com ---- function add_date($givendate,$day=0,$mth=0,$yr=0) { $cd = strtotime($givendate); $newdate = date('Y-m-d h:i:s' , mktime( date('h',$cd), date('i',$cd), date('s',$cd), date('m',$cd)+$mth, date('d',$cd)+$day, date('Y',$cd)+$yr ) ); return strtotime($newdate); }

« previous php.notes (#171768) next »