VBScript Tutorial
VB HOME
VB Introduction
VB How to
VB Where to
VB Variables
VB Procedures
VB Conditional
VB Looping
VB Summary
Examples
VB Examples
References
VB Functions
VB Keywords
Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality
W3Schools Tutorials
W3Schools Forum
Helping W3Schools
|
VBScript Year Function
Complete VBScript Reference
The Year function returns a number that represents the year.
Syntax
| Parameter |
Description |
| date |
Required. Any expression that can represent a date |
Example 1
document.write(Date & "<br />")
document.write(Year(Date))
Output:
1/15/2002
2002
|
Complete VBScript Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|
|
Jump to: Top of Page
or HOME or
Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.
|
|
|