note 25699 deleted from function.getdate by nicos

From: Date: Mon, 21 Oct 2002 13:06:55 +0000
Subject: note 25699 deleted from function.getdate by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38358@lists.php.net to get a copy of this message
How about this for putting getdate() into sql easily: $today = $getdate(); $mm = $today["mon"]; $dd = $today["mday"]; $yyyy = $today["year"]; if($dd <10) { $dd = "0$dd"; } $xdate = "$yyyy-$mm-$dd"; works for me :)

« previous php.notes (#38358) next »