Jump to content

Beginner Date Conversion Question


brmcdani44

Recommended Posts

I have a table that is being dynamically generated off of a SQL query.  I am trying to convert a date to the American version of the date field (m,d,y), however there is an error in my code.

Can someone help me out?  Any help is appreciated!  Thanks in advance!

 

echo "<td>"date('d-m-Y', strtotime(.$row['submit_date'].));"</td>";
Link to comment
https://forums.phpfreaks.com/topic/277591-beginner-date-conversion-question/
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.