Jaa


VARIANT2DATE Function

Gets a date from a variant.

Syntax

  
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

Variant Data Type
Date and Time Functions
Using COM Technologies in Microsoft Dynamics NAV