dayName Function

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

Retrieves the name of the day of the week specified by a number.

str dayName(int number)

Parameters

Parameter

Description

number

The number of a day in a week.

Return Value

The day of the week specified by the number parameter.

Remarks

The valid values for the number parameter are 1 through 7. Monday is represented by 1, Tuesday by 2, and Sunday by 7.

Example

    static void dayNameExample(Args _arg)
    {
        str s;
        ;
        s = dayName(01);
        print "First day of the week's name is " + s;
        pause;
    }

See also

mthName Function

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