SystemDate() or Today()

As an Axapta developer, sometimes may feel confused about SystemDate() and Today(). Do they function identically? The answer is NO!
Systemdate is the date a user can manually change in menu Tools-> Systemdate. There, the machine date is shown and the user has the possibility to change the system date. This date is local for the session, so no other users and axapta object server will be affected by that and when logging out and in again. As a general rule in programming, it is recommended to use Systemdate(). If you are aware that you have to use the machine date, then use Today().

This entry was posted in Axapta Development. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s