How would I go about setting the default value of the datetime field of a form to the current time in Symfony2?
I'm using the FormBuilderInterface and the following isn't working:
$builder->add(
'completed_datetime', 'datetime', array('data' => new \DateTime('now'))
);
The form continues to show what I presume to be the default value for the datetime field 2008-01-01 00:00.