year_return_year_of_date_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== YEAR (return year of date) ====== | |
YEAR(date)
YEAR | Returns the year. |
date | A numeric constant, variable, expression, or the label of a string variable declared with a date picture, containing a standard date. A variable declared with a date picture is automatically converted to a standard date intermediate value. |
The YEAR procedure returns a four digit number for the year of a standard date (1801 to 9999).
Return Data Type: LONG
Example:
IF YEAR(LastOrd) <; YEAR(TODAY()) !If last order date not from this year
DO StartNewYear !start new year to date totals
END
See Also:
year_return_year_of_date_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1