Skip to content

DateGetYear

See Also: Time and Date Functions

Purpose

The DateGetYear function returns the Year component of the given DateTime variable, dtVar.

Return Type

Integer

Syntax

DateGetYear({dtVar})

Where:

Example

Procedure Test
    DateTime dtVar
    // Get the current local date and time
    Move (CurrentDateTime()) To dtVar
    Showln "The Year of " dtVar " is: " (DateGetYear(dtVar))
End_Procedure