1$time = '2013-01-22 10:45:45';
2
3echo $time = date("H:i:s",strtotime($time));
1<?php
2$date = new DateTime('2000-01-01');
3echo $date->format('Y-m-d H:i:s');
4?>
1<?php
2$date = new DateTime('2000-01-01');
3echo $date->format('Y-m-d H:i:s');
4?>
5
6