dayOfWk Function

Calculates the day of the week for a date.

NoteNote

Monday is the first day of the week.



int dayOfWk(date date)

Parameter

Description

date

The date to test.

The day of the week that date falls on.

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: