Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一列具有数据类型datetime,我想以拆分方式在树枝中获取此字段,例如
datetime
Enter date <textbox to take date in format=YYYY:M:d> Enter time <select box for time (format=HH:MM:SS)>
我想以与表格相同的格式插入表格
例如:2013-02-14 12:02:32
2013-02-14 12:02:32
我添加了日期和时间的小部件并且它有效
$builder->add('startDate','datetime',array( 'date_widget'=>'single_text', 'date_format'=>'d-M-y', 'time_widget' => 'choice' ))
我认为这将是实现我所期望的方式。