Re: Time problem

From: Date: Wed, 12 Nov 2003 01:35:29 +0000
Subject: Re: Time problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169221@lists.php.net to get a copy of this message
Erin wrote:
Hi All,
    Sorry if this has been asked a 1000 times and if its easy to find in the
php manual but i cant seam to solve this. How do i convert a timestamp in to a normal readable time & date ie 20031111155023 into 11th November 2003 @ 15:50:23
IFF the "timestamp" is coming from MySQL (which has that format), then you should use DATE_FORMAT() in your query to do the formatting. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#169221) next »