systemDateSet Function [AX 2012]

Updated: April 19, 2012

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Changes the system date.


date systemDateSet(date _date)

Parameter

Description

_date

The new date for the system

The new system date.

This function does not affect the session date.

This method will change the date, but the time will be set to zero.

The following example sets the system date to today's date.

static void systemDateSetExample(Args _arg)
{
    date d = today();
    ;
    d = systemDateSet(d);
    print d;
    pause;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: