Call-911 Posted April 2, 2011 Share Posted April 2, 2011 Hello All, I have the following code: echo "<table width='615px' cellpadding='3' cellspacing='4' align='center'>"; echo "<tr>"; echo "<td align='left' width='150px'>"; echo substr($row['date'],0,11); echo "</td>"; echo "<td align='left' width='465px'>"; echo $row["food"] ; echo "</td>"; echo "</tr>"; echo "</table>"; And this outputs: Apr 4 2011 Chicken Ceasar Salad, Garlic Toast, Cloddhoppers, Applesauce, & Milk (etc.) How can I add "Mon" in front of "Apr 4 2011"? thanks! Link to comment https://forums.phpfreaks.com/topic/232506-get-day-name-from-datetime/ Share on other sites More sharing options...
acefirefighter Posted April 2, 2011 Share Posted April 2, 2011 Look here http://php.net/manual/en/function.date.php It is extremely simple. Link to comment https://forums.phpfreaks.com/topic/232506-get-day-name-from-datetime/#findComment-1195914 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.