Year Function

Top  Previous  Next

Function

Returns the year for the specified date.

 

Syntax

 

value = Year( expression )

 

Parameters

expression

 

any expression that resolves to a date in the format YYYYMMDD

 

 

 

returns

 

the year for the given date

 

Examples

 

tradeYear = Year( 20021215 )        ' returns 2002