nextYr Function

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


date nextYr(date date)

Parameter

Description

date

The date to match in the following year.

The closest match to the specified date that is found in the following year.

For example, nextyr(29\02\1998) returns 28\02\1999.

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

Community Additions

ADD
Show: