public function Date::getDateFormat in CiviCRM Entity 8.3
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.
Overrides HandlerBase::getDateFormat
File
- src/
Plugin/ views/ argument/ Date.php, line 29
Class
- Date
- Argument handler for CiviCRM dates.
Namespace
Drupal\civicrm_entity\Plugin\views\argumentCode
public function getDateFormat($format) {
return $this->query
->getDateFormat($this
->getDateField(), $format);
}