Need help with date/time

$DBdate = “2010-12-25 12:57:41”;

How do I change the above to use the following format?

date(“Y-m-d”)

Thanks!

Do a


$timestamp = strtotime($DBdate);
$newTime = date("Y-m-d", $timestamp);