The date data type obviously holds date values. The dates are system formatted as dd\mm\yyyy.
date birthday = 29\01\2008
The date variable can hold values from 1\1\1900 to 31\12\2154, and you can use integers to add or subtract a date.
To get the session date set in AX you can use the systemdateget() function. The session date in AX is automatically set to the machine date on the computer running your AX client when you start the AX client. You can change the session date by pressing the Dynamics AX button (Alt + M) and selecting Tools | Session Date. In the form that opens, you can change both the session date and time. This is typically done to post a journal as if it was posted on a different date than the actual date.
To retrieve the local machine's date, use the today() function.
date birthday = 29\01\2008
The date variable can hold values from 1\1\1900 to 31\12\2154, and you can use integers to add or subtract a date.
To get the session date set in AX you can use the systemdateget() function. The session date in AX is automatically set to the machine date on the computer running your AX client when you start the AX client. You can change the session date by pressing the Dynamics AX button (Alt + M) and selecting Tools | Session Date. In the form that opens, you can change both the session date and time. This is typically done to post a journal as if it was posted on a different date than the actual date.
To retrieve the local machine's date, use the today() function.
No comments:
Post a Comment