refiking Posted January 25, 2009 Share Posted January 25, 2009 How can I reformat the date from mysql's timestamp format to mm/dd/yy 00:00 AM/PM $sql = mysql_query("SELECT * FROM `winners_board` WHERE `wb_id` > '$wbeb'")or die(mysql_error()); while ($row = mysql_fetch_assoc($sql)){ $timestamp = $row['thestamp']; } Echo $timestamp; Link to comment https://forums.phpfreaks.com/topic/142362-solved-reformat-date/ Share on other sites More sharing options...
Mchl Posted January 25, 2009 Share Posted January 25, 2009 $dateFormatted = date("format",strtotime($timestamp)); See date for "format" Link to comment https://forums.phpfreaks.com/topic/142362-solved-reformat-date/#findComment-745917 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.