date formatting... help

From: Date: Fri, 16 May 2003 13:03:05 +0000
Subject: date formatting... help
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27812@lists.php.net to get a copy of this message
ok so have my dates inserted into a date field in mySql db as Y-m-d or 2003-05-16 when i go to retrieve then i want to display them as Friday may 15 2003 but the formatting below doesn't seem to work <?php echo date($row_rsViewNews['newsDate'], l, d.m.Y) this <?php echo date('l, F d, Y',$row_rsViewNews['newsDate']); ?> which only shows a wierd date in 1970??? any pointers please! thanks -paul

« previous php.db (#27812) next »