System.Variant2Date(Variant) Method
Version: Available or changed with runtime version 1.0.
Gets a date from a variant.
Syntax
Date := System.Variant2Date(Variant: Variant)
Note
This method can be invoked without specifying the data type name.
Parameters
Variant
Type: Variant
The input variant.
Return Value
Date
Type: Date
Example
var
TextDate: Date;
variant1: Variant;
begin
variant1 := Today;
TestDate := Variant2Date(variant1);
end;