public function QueryPluginBase::getDateFormat

Creates cross-database date formatting.

Parameters

string $field: An appropriate query expression pointing to the date field.

string $format: A format string for the result, like 'Y-m-d H:i:s'.

Return value

string A string representing the field formatted as a date in the format specified by $format.

1 method overrides QueryPluginBase::getDateFormat()
Sql::getDateFormat in drupal/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php
Overrides \Drupal\views\Plugin\views\query\QueryPluginBase::getDateFormat().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/query/QueryPluginBase.php, line 207
Definition of Drupal\views\Plugin\views\query\QueryPluginBase.

Class

QueryPluginBase
@todo.

Namespace

Drupal\views\Plugin\views\query

Code

public function getDateFormat($field, $format) {
  return $field;
}