Date formatting Question (Beginner)
| From: | Paul O' Connor | Date: | Fri, 09 Jun 2000 11:46:08 +0000 |
| Subject: | Date formatting Question (Beginner) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-286@lists.php.net to get a copy of this message | ||
Hi,
I've a date stored in a MySQL table.
When retrieving this date from the DB, I want to output this date in day,
Month Name, Year format.
I've tried numerous variants of the following code:
$date = $row["task_date"];
print (date ("d F Y", $date));
However, I keep getting - 1 January 1970.
The date in the DB is ok as
echo $date produces 2000-06-06.
Regards,
Paul.