note 49227 deleted from function.getdate by bobby

From: Date: Fri, 08 Sep 2006 14:47:05 +0000
Subject: note 49227 deleted from function.getdate by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116913@lists.php.net to get a copy of this message
Note Submitter: davidhc at gmail dot com ---- function getDateForMysqlDateField() { $date = getDate(); foreach($date as $item=>$value) { if ($value < 10) $date[$item] = "0".$value; } return $date['year']."-".$date['mon']."-".$date['mday']." ".$date['hours'].":".$date['minutes'].":".$date['seconds']; }

« previous php.notes (#116913) next »