DateGetHour

See Also: Time and Date Functions

Purpose

The DateGetHour function returns the hour component of the given DateTime variable, dtVar.

Return Type

Integer

Syntax

DateGetHour( {dtVar} )

Where:

Example

Procedure testDateGetHour

    DateTime dtVar

 

    //Get the current local date and time

    Move (CurrentDateTime()) To dtVar

    Showln "The hour of " dtVar " is: " (DateGetHour(dtVar))

End_Procedure