RE: [PHP] Re: Using date() function

From: Date: Sun, 06 Oct 2002 13:01:23 +0000
Subject: RE: [PHP] Re: Using date() function
References: 1  Groups: php.general php.windows 
Request: Send a blank email to php-general+get-118992@lists.php.net to get a copy of this message
Hi Nicos, Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me back Tuesday, 19 January 2038 04:14:07 with ever entry. $sql['date'] is a TIMESTAMP and looks like this 20021006141256 in the datebase. It should give me Sunday, 06 October 2002 14:12:56..? Wierd eh? Do u know a solution? Best regards, Davy Obdam, mailto:info@davyobdam.com -----Original Message----- From: nicos@php.net [mailto:nicos@php.net] Sent: Sunday, October 06, 2002 1:59 PM To: php-general@lists.php.net; php-windows@lists.php.net Subject: [PHP] Re: Using date() function First you should use : $entry_date = date('l, d F Y H:i:s',$sql['date']); And $sql['date'] must be a TIMESTAMP. -- Nicos - CHAILLAN Nicolas nicos@php.net www.WorldAKT.com - Hébergement de sites Internet

« previous php.general (#118992) next »