I have a datetime field in the form that I want to provide a mask of the format 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 the form field looks something like this:
2014-08-25T22: 37: 37Z
I would like something like:
2014-08-25 22:37
Can i get this?
I saw this and this , but did not find a real example in hours (24 hours format) and minutes
Thank you
source share