num2Date Function

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 to return the date for.

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.

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

Community Additions

ADD
Show: