Friendly Dates with MySQL and PHP
$when = date('F j, Y', strtotime($datetime));
The above code, where the ‘$datetime’ variable is a MySQL datetime stamp, will output a humanized date use PHP’s date(); function.
« Excuse Rolodex - TV on the Radio – Golden Age (Guitar Chords/Tab) »
Comments
Post a comment