note 9866 deleted from date by ronabop
| From: | ronabop@php.net | Date: | Sat, 10 Mar 2001 22:56:03 +0000 |
| Subject: | note 9866 deleted from date by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12215@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