note 9866 added to date

From: Date: Tue, 28 Nov 2000 19:16:54 +0000
Subject: note 9866 added to date
Groups: php.notes 
Request: Send a blank email to php-notes+get-8196@lists.php.net to get a copy of this message
When I use dates from a mysql database, I explode the date then rearange it. If you had a column of enddate: $x=explode("-",$row["enddate"]); $enddate=$x[1] . "/" . $x[2] . "/" . $x[0]; 2000-11-28 would be 11/28/2000 http://www.php.net/manual/function.date.php

« previous php.notes (#8196) next »