I have a table in the database with data of type date, the dates in the database are in this format:
2009-09-10.
I'm trying to get them via json from symfony like this:
linha 7: date("d/m/Y", strtotime($tbdeliberacoes->getData()))
In my field customization file it looks 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 already researched and found nothing that would help me.