jim.davidson Posted May 4, 2007 Share Posted May 4, 2007 I'm running PHP MySQL 4.1.21 and dreamweaver 8 My code is this: <?php echo $row_getOrder['received_date']; ?> It displays 2007-04-24 11:05:10 How do I format $row_getOrder['received_date'] in PHP to display Apr 24, 2007 Link to comment https://forums.phpfreaks.com/topic/49993-another-date-format-question/ Share on other sites More sharing options...
jim.davidson Posted May 4, 2007 Author Share Posted May 4, 2007 Found an answer myself <?php $recv_date = strtotime($row_getOrder['received_date']); echo date("M j, Y", $recv_date); ?> Link to comment https://forums.phpfreaks.com/topic/49993-another-date-format-question/#findComment-245435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.