php extract time from datetime
snippet in php

php extract time from datetime

user9857

$time = '2013-01-22 10:45:45';

echo $time = date("H:i:s",strtotime($time));