- ⌂ Date & Time
- Functions
MONTH()
Return the month part of a date or timestamp as an integer from 1-12.
Prototype
integer MONTH(mixed $timestamp)
Parameters
- timestamp - A date ("YYYY-MM-DD") or timestamp ("YYYY-MM-DD HH:MM:SS").
Return
The month portion of a date or timestamp, or NULL if there is an error, such as an invalid timestamp.
Example
SELECT OID, MONTH(META(LastModified)) AS MonthModified FROM User
See Also
DAY(), YEAR()