I have a datetime field in a form which I want to give format mask yyyy-mm-dd hh:mi
, and I use the following code:
$builder->add('beginDate', 'datetime', array('widget' => 'single_text',
'date_format' => 'yyyy-MM-dd HH:i'))
But what I get in form field is something like this:
2014-08-25T22:37:37Z
I would like something like:
2014-08-25 22:37
Can I get this?
I've seen this and this but didn't find a real example for hours (24 hour format) and minutes
thank you