Need help with display date
Posted: Fri Jul 22, 2011 11:54 am
Hello, I'm needing assistance in displaying a date that is being retrieved from a mysql DB. Here's what I have so far:
while($row2 = mysql_fetch_array($result2)) {
echo "<tr>";
echo "<td>" . $row2['date'] . "</td><td>" . $row2['Notes'] . "</td>";
echo "</tr>";
echo "<br />";
}
All of this works, but my date is displayed as 2011-07-21. I'd like for it to be displayed as either 07-21-2011 or 07/21/2011.
Thanks for your assistance!!
while($row2 = mysql_fetch_array($result2)) {
echo "<tr>";
echo "<td>" . $row2['date'] . "</td><td>" . $row2['Notes'] . "</td>";
echo "</tr>";
echo "<br />";
}
All of this works, but my date is displayed as 2011-07-21. I'd like for it to be displayed as either 07-21-2011 or 07/21/2011.
Thanks for your assistance!!