display date
| From: | wooik at halfmind dot com | Date: | Sun, 17 Dec 2000 06:48:58 +0000 |
| Subject: | display date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30720@lists.php.net to get a copy of this message | ||
Before I asked my question, just want to let you all know that I did look
up the manual to find the answer, but can't seem to find it.
Anyway, the problem that I have: I have a postgres database the returns a
datetime field. I want to display it as MMM DD, YYYY (e.g. Nov 15, 2000),
The following is what I have
<?php echo date("M d, Y", $r[4]); ?> <== $r[4] contains Dec 16, 2000
but what I got back is "Dec 31, 1969".
Am I missing something again??
wooi.
p/s Brain, if you are reading this email, just want to thank you for
answering me my previous question :-) But I did try to find the answer in
the php manual and some other php sites.