Year()

Syntax

Result = Year(Date)
Description
Returns the year value of the specified date.

Parameters

Date The date from which to extract the year.

Return value

Returns the year component of the date.

Example

  Debug Year(Date(2002, 10, 3, 0, 0, 0))  ; Outputs '2002'.

See Also

FormatDate(), Month(), Day(), Hour(), Minute(), Second()

Supported OS

All

<- Second() - Date Index