Gets the current DateTime.

DateTime := CURRENTDATETIME

Property Value/Return Value

Type: DateTime

The current DateTime.

Example

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

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

The message window displays the current date and time.

See Also