Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Year Function

VBScript Year Function


VBScript reference manual Complete VBScript Reference Manual


The Year function returns a number representing the year.

Syntax

Year(date)

Parameters Description
date Required. Any expression that can represent a date.

Example

Example

The example above produces the following output:

2010

Try it »


VBScript reference manual Complete VBScript Reference Manual