today Function

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

Retrieves the current date on the system.

date today()

Return Value

The current date.

Example

    static void todayExample(Args _arg)
    {
        date d;
        ;
        d = today();
        print "Today's date is " + date2Str(d, 0, 2, -1, 2, -1, 4);
        pause;
    }

See also

systemDateGet Function

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