mthOfYr Function [AX 2012]

Updated: December 10, 2009

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

Retrieves the number of the month in the year for the specified date.

NoteNote

January is 1, February is 2, and December is 12.


int mthOfYr(date date)

Parameter

Description

date

A date that specified a year, month, and day.

The number of the month in year, for the month that is represented by the date parameter.

static void mthOfYrExample(Args _arg)
{
    int i;
    ;
    i = mthOfYr(today());
    print "The number of the month in today's date 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: