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