note 38783 rejected from function.date by betz
| From: | betz@php.net | Date: | Wed, 07 Jan 2004 01:06:57 +0000 |
| Subject: | note 38783 rejected from function.date by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63037@lists.php.net to get a copy of this message | ||
Note Submitter: schwendtner@neuhofen.at
----
in my mysql db i have on field which is a timestamp(8) - when i add a record, there is 20040107 in
the field. how do i get the correct format of the date in php : my code doesnt work correctly:
$datum = date('d. M Y', $r[erstell_dat]);
echo "$r[erstell_dat] - $datum;
i get: 20040107 - 20. Aug 1970
what is wrong????
joachim