date formatting... help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux