COMVariant::createDateFromYMD Method [AX 2012]
Creates a new COMVariant object and initializes it with a date value in one operation.
client server public static COMVariant createDateFromYMD(
int year,
int month,
int day,
[COMVariantInOut inOutFlag])
Run On
CalledParameters
- year
- Type: int
The year part of the date.
- month
- Type: int
The month part of the date.
- day
- Type: int
The day part of the date.
- inOutFlag
- Type: COMVariantInOut Enumeration
A flag that determines whether the object can be used to pass data to a COM method or COM property, to receive data, or both. This parameter is optional.
Possible values are:
COMVariantInOut::OUT_RETVAL
The COMVariant object that is created by this method has the data type VT_DATE (date/time).
This method allows you to use dates that are outside the range for the Microsoft Dynamics AXdate data type (01\01\1901 to 31\12\2154). For dates within the date range, you can use the COMVariant.createFromDate method.
Show: