Click to See Complete Forum and Search --> : Date Formatting


focus310
05-02-2007, 11:01 AM
Hello:

I have a database table with a field called date. The date appears in the table as 2007-05-02.

I want to format the date so it looks like 05/02/2007.

The syntax that I have displays the date as: December 31, 1969.

Can someone help me?

Thank you in advance.

Here's my code:

$today_date = date("F j, Y", $date);

NogDog
05-02-2007, 11:51 AM
http://phpbuilder.com/board/showthread.php?t=10339739