Posted By

meme on 01/31/08


Tagged

date format mqsql


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

JimiJay
mh5777
jamesming
vali29
joethermal


Convert MySQL Date To Something Else in PHP


 / Published in: PHP
 

The code below will format 2008-01-30 10:58:32 to Jan 30, 2008

See the page http://us2.php.net/date for a complete list of formatting codes.

  1. $row['F_UPDATED'] = date("M d, Y",strtotime($row['F_UPDATED']));

Report this snippet  

You need to login to post a comment.