Forum Moderators: coopster
I am currently storing a date in my MYSQL DB:
[php]date_reg DATETIME NOT NULL default '0000-00-00 00:00:00', [/php]
I want to extract it into the correct format using an echo statement rather than doing the formatting in the SQl query.
Something like this:
[php]<?echo date("M j, Y", $row['date_reg'])?>[/php]
But as you can guess its coming out all screwy (Dec 31, 1969)
Can anyone possibly help?