function HandlerBase::getDateFormat
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateFormat()
- 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateFormat()
- 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateFormat()
Creates cross-database SQL date formatting.
Parameters
string $format: A format string for the result, like 'Y-m-d H:i:s'.
Return value
string An appropriate SQL string for the DB type and field type.
File
-
core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php, line 640
Class
- HandlerBase
- Base class for Views handler plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function getDateFormat($format) {
return $this->query
->getDateFormat($this->getDateField(), $format);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.