Jump to content

[SOLVED] Datetime formatting


woolyg

Recommended Posts

Hi,

 

If I have a datetime field that saves info in the format 2007-07-21 16:59:36, and use

 

<?php

$result = mysql_query ("SELECT table.date_added FROM table");
while ($row = mysql_fetch_array($result)) {
$date = $row['date_added'];

echo $date;
}



 

How can I format the info that's been outputted from the query to 'Saturday 21st July 2007 16:59:36'    ?

 

It's eluding me!

 

Any help appreciated,

Woolyg.

Link to comment
https://forums.phpfreaks.com/topic/61156-solved-datetime-formatting/
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.