TODAY Function (Date)

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
Text000 The current date is: %1
MESSAGE(Text000, TODAY);  

The message window could display the following:

The current date is: 05/27/08

See Also

Date and Time Functions