Hi,
This will take a date ($MyDateIn) and split it into variables $day, $month and $year.
it will accept the following date seperators /. or -
You can then use these variables in the mktime function and format it using the date function
list ($month, $day, $year) = split ('[/.-]', $MyDateIn);
$MyNewDate = date('Y-m-d H:i:s',mktime(0,0,0,$month,$day,$year));
Hope this helps
Mike