dayOfMth Function [AX 2012]

Updated: December 10, 2009

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

Calculates the number of the day in the month for the specified date.


int dayOfMth(date date)

Parameter

Description

date

The date to test.

An integer between 1 and 31 that indicates the day of the month for the specified date.

  • dayOfMth(31\12\2001) //returns 31.

static void dayOfMthExample(Args _arg)
{
    date d = today();
    int i;
    ;
    i = dayOfMth(d);
    print "Today's day of the month is " + int2Str(i);
    pause;
}

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

Community Additions

ADD
Show: