Year
Syntax
Year(date_value)
Description
Returns the year portion of the date value provided as a parameter.
Parameters
| Parameter | Description |
|---|---|
|
date_value |
A date value, such as the value returned by the Date() function. |
Returns
Returns the year portion of the date value provided as a parameter.
Example
The following table presents examples of using the Year function; the second example assumes that the current year is 2012:
| Expression | Result |
|---|---|
|
Year(February 13, 2012 ) |
2012 |
|
Year(Date()) |
2012 |