dayOfWk 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 day in the week for the specified date.

NoteNote

Monday is represented by 1, Tuesday by 2, and Sunday by 7.


int dayOfWk(date date)

Parameter

Description

date

A date value that indicates the year, month, and day.

The number of the specified day in the week.

static void dayOfWkExample(Args _arg)
{
    date d = today();
    int i;
    ;
    i = dayOfWk(d);
    print "Today's day of the week 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: