What is the function to get the system date and current date in Dynamics AX?

What are the function calls to get the System date and current date using X ++ in Microsoft Dynamics AX?

+4
source share
4 answers

Use static methods in the DateTimeUtil class:

Both return the UTC date and time, but will be converted to local time on the display.

See Best Practice .

+9
source
+5
source

In dynamics Ax <2009

The current date:

Today() 

The system date provided by the function today should only be used where the actual machine date is needed.

System Date:

 SystemDateGet() 

Most application logic should use the systemDateGet system function, which contains the logical date of the system.

+4
source

SystemDateGet () is a command to get the current date in a display method.

today (), which can return a different date (this returns the date of the machine, not the date from Dynamics AX).

+2
source

All Articles