Property: VariantDate for UsiTimeDisp
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: VariantDate for UsiTimeDisp
Property: VariantDate for UsiTimeDisp
Specifies a date or time. This entry does not include microseconds and nanoseconds.
If you use the VariantDate property in a function that works with seconds instead of milliseconds, the time information is rounded and can lead to deviations in the calculation result.
Set oDispatch = Object.VariantDate
| Object | UsiTimeDisp Object with this property |
| oDispatch | Returned object |
The following example uses the VBS function NOW to determine the current system date and the current system time, and assigns them to the Root property DateTime.
Dim oMyTime Set oMyTime = CreateTime(2013,9,13,10,51,44,123,456,789) oMyTime.VariantDate = NOW Call Data.Root.Properties.Add("DateTime", oMyTime)