nextQtr Function

Retrieves the date in the following quarter that corresponds most closely to the specified date.


date nextQtr(date date)

Parameter

Description

date

The date to match in the following quarter.

The closest match to specified date that is found in the next quarter.

For example, nextQtr(31\01\1998) returns 30\04\1998.

static void nextQtrExample(Args _arg)
{
    date d;
    ;
    d = nextQtr(today());  
    print "Closest date next quarter is " 
        + date2Str(d, 2, 2, -1, 2, -1, 4);
    pause;
}

Community Additions

ADD
Show: