Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Parameters
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. Note The year parameter must be written as four digits. |
Return Value
A date value based on the values of day, month, and year parameters.
Remarks
If the date is not valid, this method returns a zero date.
Example
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).