[PHP] date and time conversion

2005-09-11 Thread babu
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

Re: [PHP] date and time conversion

2005-09-11 Thread Burhan Khalid
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/date