Gets the current date set in the operating system.

Date := TODAY

Property Value/Return Value

Type: Date

The current date defined by the operating system.


You can only use the TODAY function to retrieve the current date from the operating system. You cannot use it to set the date in the operating system.


This example shows how to use the TODAY function. This example requires that you create the following text constant in the C/AL Globals window.

Name ConstValue


The current date is: %1

Copy Code

The message window could display the following:

The current date is: 05/27/08

See Also