dayOfWk Function

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;
}

Community Additions

ADD
Show: