See Also: Time and Date Functions
The CurrentDateTime function returns a DateTime or Time variable that contains the current local time.
CurrentDateTime()
The CurrentDateTime function returns a DateTime variable or Time variable that contains the current local time. This functions respects the current Windows regional settings configuration for the date and time format.
This sample moves the current date and time to a DateTime variable.
Procedure TestCurrentDateTime
DateTime dtCurrentDateTime
Move (CurrentDateTime()) to dtCurrentDateTime
Showln "The time is " dtCurrentDateTime
End_Procedure
This sample moves the current time to a Time variable.
Time tiNow
Move (CurrentDateTime ()) to tiNow
This sample moves the current date to a Date variable.
Date dNow
Move (CurrentDateTime ()) to dNow