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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php