mthOfYr Function

Retrieves the number of the month in the year for the specified date.

NoteNote

January is 1, February is 2, and December is 12.



int mthOfYr(date date)

Parameter

Description

date

A date that specified a year, month, and day.

The number of the month in year, for the month that is represented by the date parameter.

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: