Date Format on a timestamp field
| From: | davey sonya | Date: | Tue, 28 Nov 2000 07:51:21 +0000 |
| Subject: | Date Format on a timestamp field | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27562@lists.php.net to get a copy of this message | ||
Hi I'm new to PHP
Was wondering if anyone can help me with adjusting a
timestamp field in the database to a date
format(d/m/Y).
This is what I have so far:
<? echo
date("d/m/Y",$GetApplicationDetailRow[$IndApplicationDate]);?>
This does not give me an error message, but rather
gives me the date value of:01/01/1970
which should actually hold the date value:08/05/2000
from a field in the database.
And this:<? echo
$GetApplicationDetailRow[$IndApplicationDate];?> gives
me the right value but in the wrong format
ie:08/05/2000 00:00:00
Thanks in advance.
Lindie
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/