DATI2VARIANT Function
Creates a variant that contains an encapsulation of a COM VT_DATE.
Variant := DATI2VARIANT(Date, Time)
Date
Type: Date
The input date.
Time
Type: Time
The input time.
Type: Variant
This example requires that you create the following variables.
Name | DataType |
---|---|
TestDate | Date |
TestTime | Time |
Variant1 | Variant |
TestDate := TODAY;
TestTime := TIME;
Variant1 := DATI2VARIANT(TestDate, TestTime);
Variant Data Type
Date and Time Functions
Using COM Technologies in Microsoft Dynamics NAV