intvNorm Function

Returns the normalized date for the period.


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

Parameter

Description

input_date

The end of the period, which must be later than the date specified by the ref_date parameter.

ref_date

The start of the period.

func

An intvScale enumeration value that indicates the interval division unit.

The normalized date for the period.

The returned date will equal the date of the first day in the interval in which the date specified by the ref_date parameter exists.

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

Community Additions

ADD
Show: