Format for time display?
问题 I am making application with symfony2 and sonata-admin bundle. public function configureListFields(ListMapper $listMapper) { $listMapper ->addIdentifier('id') ->add('fromDate'); it shows time like this September 1, 2013 02:00 so I changed - ->add('fromDate'); + ->add('fromDate',null,array('format' => 'yyyy-MM-dd HH:mm:ss')) but it still show the same. please give me how to use format for time display? 回答1: Try using ->add('fromDate','datetime',array('date_format' => 'yyyy-MM-dd HH:mm:ss')) By