Jump to content

Get day name from datetime


Call-911

Recommended Posts

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

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.