Skip to content

DateGetMonth

See Also: Time and Date Functions

Purpose

The DateGetMonth function returns the Month component of the given DateTime variable, dtVar.

Return Type

Integer

Syntax

DateGetMonth({dtVar})

Parameters

Example

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