Advantage Concepts
Advantage Expression Engine function that converts a date value to the year as a numeric value
YEAR(<dDate>) à nYear
<dDate> The date value to be converted.
YEAR() returns the year of the specified date value including the century digits as a four-digit numeric value. The value returned is not affected by the current date format. Specifying a null date from a DBF table (CTOD("")) returns zero. Specifying a null date from an ADT table returns NULL.
YEAR() is a date conversion function that converts a date value to a numeric year value. Use it in calculations for documents such as periodic reports.
YEAR() is a member of a group of functions that return components of a date value as numeric values. The group includes DAY() and MONTH() which return the day and month values as numeric values.
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.
None.