intvNorm Function

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)

Parameters

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.

Return Value

The normalized date for the period.

Remarks

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.

Example

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

See also

intvMax Function

intvNo Function

IntvScale Enumeration

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