1.20.x database.inc abstract public DatabaseConnection::dateFormatSql($field, $format)

Format a date field.

Parameters

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

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 1476
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

abstract public function dateFormatSql($field, $format);