Year                                                                                                           Function

 

YEAR(theDate as Date)          Function

 

Description

Returns an integer which is the year value from the Date variable theDate

 

Example

Dim theDate as Date

Dim result as Integer

theDate=DateVal(1995,6,23)

result=Year(theDate) 'will calculate result=1995