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
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to