CURRENTDATETIME Function (DateTime)

Gets the current DateTime.

Syntax

  
DateTime := CURRENTDATETIME  

Property Value/Return Value

Type: DateTime

The current DateTime.

Example

This example requires that you create a DateTime variable named TestDateTime.

TestDateTime := CURRENTDATETIME;  
MESSAGE(Format(TestDateTime));  

The message window displays the current date and time.

See Also

DateTime Functions