I know this is an old question, but in case anyone else comes looking for an answer: CakePHP's generic Model
class has a method, ::deconstruct()
, that is used to handle this necessary logic internally. You can use it like this:
$stringDate = $this->MyModel->deconstruct('fieldname', $arrayDate)