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.

« - »

Comments

Post a comment