Jump to content

PHP Timecode to date Problem


patsfans

Recommended Posts

I think I just figured it out:

 

<?
$date = "2010-05-19 12:51:47";

//echo date("F n, Y",strtotime($date));
$timestamp = strtotime($date);
$formatted_date = date('F d, Y', $timestamp);

echo "$formatted_date"; 
?>

 

It returned correctly - so hopefully someone else finds this useful.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.