LONGYEAR$
From CometWiki
LONGYEAR and LONGYEAR$
System variable: LONGYEAR
Length/precision: 4.0
Description:
The system variable named LONGYEAR is a four-digit numeric variable whose value equals the current year (e.g., 1996).
This value is obtained from the DOS system date.
--------------------------------------------------------------------------------
System variable: LONGYEAR$
Length: 4
Description:
The system variable named LONGYEAR is a four-byte string whose value equals the current year (e.g., "1996").
This value is obtained from the DOS system date.