Jump to content

help incorporating strtotime to get time,date


webguync

Recommended Posts

Hi, I have a timestamp in MySQL pulling the data out like so...

 

  echo "<td>{$row["submit_timestamp"]}</td></tr>";

 

understand I can use strtotime to get a more readable date and time. Currently looks like 2010-05-17 11:32:45

 

would rather it say, May 17, 2010 11:32:45am and if it is pm be 9:30:45pm in that format.

 

thanks in advance for any assistance.

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.