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

James Moore picture James Moore · Dec 7, 2010 · Viewed 64.5k times · Source

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

Answer

Rod picture Rod · Dec 20, 2010

Use the static methods within class DateTimeUtil:

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

See Best Practice.