Year function
Syntax
Year(dt)
Description
Use the Year function to derive the year component of a Date value.
Parameters
| Parameter | Description |
|---|---|
|
dt |
A Date value from which to derive the year component. |
Returns
Returns a Number value between 1900 and 2078 equal to the year component in dt.
Example
The example sets &GRAD_YEAR to 1976:
&GRAD_DATE = DateValue("10/04/1976");
&GRAD_YEAR = Year(&GRAD_DATE);