I have one basic question about date format. As we know mysql uses yyyy-mm-dd format. I'm trying to get the correct format using the echo command so the date reads mm-dd-yyyy.
Everything else works fine. Here's my code for the DATE field. The print date command works fine but this is in a table.
----------
echo "<tr>";
echo "<td>".$row['date']."</td> ";
print date('M d Y', strtotime($row['date']));
echo "</tr>";
----------
Can print be used instead or should I stick with echo?
Thanks,
Chelsea
Everything else works fine. Here's my code for the DATE field. The print date command works fine but this is in a table.
----------
echo "<tr>";
echo "<td>".$row['date']."</td> ";
print date('M d Y', strtotime($row['date']));
echo "</tr>";
----------
Can print be used instead or should I stick with echo?
Thanks,
Chelsea