Creates a variant that contains an encapsulation of a COM VT_DATE.
Variant := DATI2VARIANT(Date, Time) |
Parameters
- Date
- Type: DateThe input date.
- Time
- Type: TimeThe input time.
Property Value/Return Value
Type: Variant
Example
This example requires that you create the following variables.
Name | DataType |
---|---|
TestDate |
Date |
TestTime |
Time |
Variant1 |
Variant |
Copy Code | |
---|---|
TestDate := TODAY; TestTime := TIME; Variant1 := DATI2VARIANT(TestDate, TestTime); |