prevYr Function [AX 2012]

Updated: November 24, 2009

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

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


date prevYr(date date)

Parameter

Description

date

The date to match in the previous year.

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

  • prevYr(29\02\1996); //Returns the date 28/02/1995 because 1996 is a leap year.

  • prevYr(28\02\1998); //Returns the date 28/02/1997.


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

Community Additions

ADD
Show: