Skip to content

DateGetDayOfYear

See Also: Time and Date Functions

Purpose

The DateGetDayOfYear function returns the day of the year of the given DateTime variable, dtVar.

Return Type

Integer

Syntax

DateGetDayOfYear({dtVar})

Where:

Example

Procedure testDateGetDayOfYear
    DateTime dtVar
    // Get the current local date and time
    Move (CurrentDateTime()) To dtVar
    Showln "The day of year of " dtVar " is: " (DateGetDayOfYear(dtVar))
End_Procedure