intvNorm Function [AX 2012]

Updated: November 18, 2010

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

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;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: