/** * Creates cross-database SQL date formatting. * * @param string $format * A format string for the result, like 'Y-m-d H:i:s'. * * @return string * An appropriate SQL string for the DB type and field type. */ public function getDateFormat($format) { return $this->query->getDateFormat($this->getDateField(), $format); }