dayOfMth Function

Calculates the number of the day in the month for the specified date.


int dayOfMth(date date)

Parameter

Description

date

The date to test.

An integer between 1 and 31 that indicates the day of the month for the specified date.

  • dayOfMth(31\12\2001) //returns 31.

static void dayOfMthExample(Args _arg)
{
    date d = today();
    int i;
    ;
    i = dayOfMth(d);
    print "Today's day of the month is " + int2Str(i);
    pause;
}

Community Additions

ADD
Show: