Compartir a través de


VARIANT2DATE Function (Date, Variant)

Gets a date from a variant.

Date := VARIANT2DATE(Variant)

Parameters

  • Variant
    Type: Variant The input variant.

Property Value/Return Value

Type: Date

The resulting date.

Example

This example requires that you create the following variables.

Name DataType

TestDate

Date

variant1

Variant

variant1 := TODAY;
TestDate := VARIANT2DATE(variant1);

See Also

Reference

Variant Data Type

Concepts

Date and Time Functions
Using COM Technologies in Microsoft Dynamics NAV