DateGetYear
See Also: Time and Date Functions
Purpose
The DateGetYear function returns the Year component of the given DateTime variable, dtVar.
Return Type
Syntax
DateGetYear({dtVar})
Where:
{dtVar}is a value of type DateTime.
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