Use DateTimeUtil::getSystemDateTime() for current date and time in AX, which compensates for the time zone of the user, whereas you can also use DateTimeUtil::utcNow() which return the current system datetime.
For session data of the AX. use systemDateGet() method. Kindly note the session date is the one which you set in AX session screen.
If you need current date only then you can also use today() method which will return the machine date only.
Hope it will help you.
Thanks
For session data of the AX. use systemDateGet() method. Kindly note the session date is the one which you set in AX session screen.
If you need current date only then you can also use today() method which will return the machine date only.
Hope it will help you.
Thanks
Comments
Post a Comment