Func Year
# VBScript Year Function
* * Complete VBScript Reference Manual](#)
* * *
The Year function returns a number that represents the year.
### Syntax
Year(date)
| Parameter | Description |
| :--- | :--- |
| date | Required. Any expression that can represent a date. |
## Example
## Example
document.write(Year("2010-02-16"))
The above example outputs:
2010
[Try it Β»](#)
* * Complete VBScript Reference Manual](#)
Thinking about AI...
[](#)(#)
(#)[](#)
[Byte Arch Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, official supply, stable and reliable. Β₯9.9 / month, immediately open](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
YouTip