What is the function to get the system date and current date in Dynamics AX?
axapta, x++
Solution
Use the static methods within class DateTimeUtil:
- getSystemDateTime
- utcNow
Both return UTC date and times, but will be converted to local time on display.
See Best Practice.
Problem
What are the function calls to get the System Date and Current Date using X++ in Microsoft Dynamics AX?