Year(Date) : Year « Date Functions « VBA / Excel / Access / Word






Year(Date)

 
Sub Main8()
   Debug.Print "Today's date is: " & Date
   Debug.Print "The year is: " & Year(Date)
End Sub

 








Related examples in the same category

1.Use year function to get the year