intvNorm Function

Returns the normalized date for the period.


int intvNorm(date input_date, date ref_date, int func)

Parameter

Description

input_date

The input date.

ref_date

The ref date.

func

An intvScale enumeration.

The normalized date for the period.

The returned date will equal the date of the first day in the interval in which ref_date resides.

static void example()
{
    print intvNorm(today(), today()-1, IntVScale::WeekDay);
    pause;
}

Community Additions

ADD
Show: