num2Date 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 that corresponds to the specified number of days after 01\01\1900.


date num2Date(int _days)

Parameter

Description

_days

The number of days after 1 January 1900 for which to return the date.

NoteNote
The first valid date in Microsoft Dynamics AX is 1 January 1901. The num2Date function does not return a valid date unless _days is greater than 365.

The date that is the number of days specified by the _days parameter after 1 January 1900.

  • num2Date(366); //Returns the date 01/01/1901 (1 January 1901).


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

Community Additions

ADD
Show: