Re: Easy Date & MySQL Question...

From: Date: Tue, 25 Jun 2002 15:28:01 +0000
Subject: Re: Easy Date & MySQL Question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103792@lists.php.net to get a copy of this message
as a quick hack you can use explode() to do this. try this: $date = explode("-",$mysqldate); echo $date[1]."/".$date[0]."/".$date[2]; ----- Original Message ----- From: "Doug Coning" <coning@coning.com> To: <php-general@lists.php.net> Sent: Tuesday, June 25, 2002 3:06 PM Subject: [PHP] Easy Date & MySQL Question... > Hi everyone, > > I have searched the php.net and don't know where to look for the code I > need. I have a MySQL date column that reads this way: 2002-06-25. However, > in PHP I want to show it this way 06/25/2002. > > Any assistance is greatly appreciated!!! > > Thanks in advance. > > Doug Coning > Coning Consulting > www.coning.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#103792) next »