note 38783 added to function.date

From: Date: Wed, 07 Jan 2004 00:27:42 +0000
Subject: note 38783 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-63035@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38783 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38783&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38783&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63035) next »