2
I have a table in the database with date type data, the dates in the database are in this format:
2009-09-10.
I’m trying to bring them via the symfony json this way:
linha 7: date("d/m/Y", strtotime($tbdeliberacoes->getData()))
in my field customization file is like this:
$this->widgetSchema['data'] = new sfWidgetFormDate(array('label' => 'Data'));
but it is this error that does not let the data appear on the screen:
Warning: strtotime() expects parameter 1 to be string, object given in line 7
I’ve researched and found nothing to help me.