Year$

Date/Time function

The Year$ function returns the current year as a string.

Syntax

ye$=Year$()

Return value

ye$, string, current 4-character year.

Example

 

yr$=Year$() ' for instance, yr$ contains "2007"