webCOMAND

DATE()

Return the date part of a timestamp.

Prototype

date DATE(timestamp $timestamp)

Parameters

  • timestamp - A timestamp in "YYYY-MM-DD HH:MM:SS" format.

Return

The date portion of a timestamp or NULL if there is an error, such as an invalid timestamp.

Example

SELECT OID, DATE(META(LastModified)) AS DateModified FROM User

Related

DATE_FORMAT()