Share via


VARIANT2TIME Function (Date, Variant)

Gets a time from a variant.

Time := VARIANT2TIME(Variant)

Parameters

  • Variant
    Type: Variant The input variant.

Property Value/Return Value

Type: Time

The resulting time.

Example

This example requires that you create the following variables.

Name DataType

TestTime

Time

variant1

Variant

variant1 := TIME;
TestTime := VARIANT2TIME(variant1);

See Also

Reference

Variant Data Type

Concepts

Date and Time Functions
Using COM Technologies in Microsoft Dynamics NAV