Mysql timestamps and php date()
use this date('Y-m-d H:i:s',strtotime($date));
Tip : try with MYSQL DATE_FORMAT
function
SELECT DATE_FORMAT('2013-02-20 02:25:21', '%H:%i:%s');
if you want to do it only with PHP then use strtotime
date('H:i:s',strtotime('2013-02-20 02:25:21'));