Returns the month of the year. (1-12)

Declaration

MONTH(datetime) -> month
MONTH(date) -> month

Parameters

datetime (type: datetime)
A datetime value to retrieve the month of the year for.
date (type: date)
A date value to retrieve the month of the year for.

Return Values

month (type: number)
The month of the year. (1-12)

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.