Re: timestamp problem !!

From: Date: Mon, 14 Jul 2003 20:06:22 +0000
Subject: Re: timestamp problem !!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155163@lists.php.net to get a copy of this message
On Wednesday 16 July 2003 02:00, Nabil wrote: > <?php > $timy = '20030714012548'; // time stamp from MySQL > echo strtotime = ($timy); > $date = ("Y-m-d" , $timy); > ?> > > and i have a wrong result.... how can i extract the YYYY-MM-DD from the > string $timy.... MySQL TIMESTAMP != UNIX TIMESTAMP Look up the date/time functions in MySQL. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Why do they put Braille dots on the keypad of the drive-up ATM? -- Why Why Why n29 */

« previous php.general (#155163) next »