MONTH()

Advantage Concepts

Advantage Expression Engine function that converts a date value to the number of the month

Syntax

MONTH(<dDate>) à nMonth

Parameters

<dDate>  The date value to be converted.

Return Values

MONTH() returns an integer numeric value in the range of zero to 12. Specifying a null date from a DBF table (CTOD("")) returns zero. Specifying a null date from an ADT table returns NULL.

Remarks

MONTH() is a date conversion function that is useful when you require a numeric month value during calculations for such things as periodic reports. MONTH() is a member of a group of functions that return components of a date value as numeric values. The group includes DAY() and YEAR() to return the day and year values as numerics.

Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.

See Also

DAY()

YEAR()