I'm fetching data from the sql database
$sql = mysql_query("SELECT * FROM entries WHERE id='$id'");
while($row = mysql_fetch_array($sql)){
$title = $row["title"];
$contents = $row["contents"];
$author = $row["author"];
$date = $row["date"];
$date = strftime("%b %d, %y", strtotime($date));
}
and then I use print $date to view the date. How can also get the day from that date..like sunday, monday ?