mthOfYr Function

Retrieves the number of the month in a particular date.

NoteNote

January is month number 1.



int mthOfYr(date date)

Parameter

Description

date

The date to return the month number from.

The number of the month in date.

static void mthOfYrExample(Args _arg)
{
    int i;
    ;
    i = mthOfYr(today());
    print "The number of the month in today's date is " + int2Str(i);    
    pause;
}

Community Additions

ADD
Show: