Year Function
SyntaxGroupYear(dateexpr)
Time/DateDescription
Return the year.
See Also
Parameters Description dateexpr Return the year for this date value. If this value is Null then Null is returned.
Date( ), Day( ), Month( ), Weekday( )
Sub Main Debug.Print Year(#1/1/1900#) ' 1900 Debug.Print Year(#1/1/2000#) ' 2000 End Sub