Year$ – Date/Time Functions





Year$ Function


Description

The Year$ function returns the current year.

Syntax

var$ = Year$()

Parameters

None.

Return Value

var$, string, representing the current year in 4 characters.

Example

msgbox(Year$())