Why not just do it in your sql query?

If you're using MySQL perhaps this page would be helpful:


Just an idea...

- E

On Sunday, October 6, 2002 10:01 PM
Davy Obdam wrote:
> Hi people
> I have a guestbook, and i need to convert the date and time from the
> database into a normal readable date.. Like Sunday, 6 october 2002
> 13:30:00. I thought i could use the date() function here. I have done
> this:
> $entry_date = date('l, d F Y H:i:s','$sql["date"]');
> echo $entry_date;
> But then i dont get the date i need. It says Thursday, 01 January 1970
> 01:00:00 (i wasn`t even born then;-), so it wasn`t me signing that
> guestbook. Any sugestions what i am doing wrong. Thanks for your time.
> Best regards,
> Davy Obdam,

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

Reply via email to