VBScript Year Function
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 »
Complete VBScript Reference Manual