Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

axapta

x++

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

like image 469
James Moore Avatar asked Dec 07 '10 17:12

James Moore


2 Answers

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.

like image 134
Rod Avatar answered Jan 04 '23 00:01

Rod


systemDateGet() and Today()

http://msdn.microsoft.com/en-us/library/aa672952.aspx

like image 26
Eaglebird Avatar answered Jan 03 '23 23:01

Eaglebird