1.20.x database.inc | abstract public DatabaseConnection::dateExtractSql($field, $extract_type) |
Extract part of a date from a date field.
Parameters
string $extract_type: The type of value to extract from the date, like 'MONTH'.
string $field: The real table and field name, like 'tablename.fieldname'.
Return value
string: An appropriate SQL string for the db type and field type.
File
- includes/
database/ database.inc, line 1489 - Core systems for the database layer.
Class
- DatabaseConnection
- Base Database API class.
Code
abstract public function dateExtractSql($field, $extract_type);