Year

Result = Year ( Date As Date )

Return the year component of a Date value as a integer value in the local timezone.

Example

Print Now; " -> "; Year(Now)
05/16/2002 22:31:30 -> 2002

See also