babu wrote:
Hi,
how to convert DD.MM.YYand HH:MM:SS into mysql date( '-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/da
Hi,
how to convert DD.MM.YYand HH:MM:SS into mysql date( '-MM-DD' ) and time
format. I think the time is same as HH:MM:SS.
Are there any php built in functions , or need to convert them using regular
expressions.
thanks
babu
-
How much
2 matches
Mail list logo