babu wrote:
Hi,
how to convert DD.MM.YYand HH:MM:SS into mysql date( 'YYYY-MM-DD' ) and time format. I think the time is same as HH:MM:SS.

[EMAIL PROTECTED] ~ $ php -r 'echo date("Y-m-d",strtotime(str_replace(".","/","12.12.05")))."\n";'
2005-12-12

Hope that helps :)

See http://php.net/date
    http://php.net/strtotime
    http://php.net/mktime

For more information

--
Burhan

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

Reply via email to