mkDate Function [AX 2012]

Updated: December 10, 2009

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

Creates a date based on three integers, which indicate the day, month, and year, respectively.


date mkDate(int day, int month, int year)

Parameter

Description

day

An integer that represents the day of the month.

month

An integer that represents the month of the year.

year

An integer that represents the year, which must be between 1900 and 2154.

NoteNote
The year parameter must be written as four digits.

A date value based on the values of day, month, and year parameters.

If the date is not valid, this method returns a zero date.

static void mkDateExample(Args _arg)
{
     date d;
      ;
 
    // Returns the date 01\01\2005.
     d = mkDate(1, 1, 2005);  
    print d;
    pause;
}

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

Community Additions

ADD
Show: