Axuda do LibreOffice 24.8
Devolve o ano dun valor de data en serie xerado pola función DateSerial ou DateValue.
Year (Número)
Enteiro
Number: Integer expression that contains the serial date number that is used to calculate the year.
This function is the opposite of the DateSerial function, and returns the year of a serial date. For example, the expression:
Print Year(DateSerial(1994, 12, 20))
devolve o valor 1994.
Sub ExampleYear
MsgBox "" & Year(Now) ,64,"Ano actual"
End Sub