Difference between today and systemDateGet methods

print today(); // will print system date on which AOS is running.

print systemDateGet(); // will print Ax session date.

To note the different you need to change the session date of AX (Tools Session date)

Advertisements

One Response to Difference between today and systemDateGet methods

  1. Tibor Nemeth says:

    To be absolutely precise: today() function retrieves current date on the computer where the code is executed. So if it is running on client side, it will return system date of client computer.

    systemDateGet() is similar, while session date is not set, so the result may depend on the location of execution (client or server). If session date is set, systemDateGet() will return the adjusted value.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: